Skip to content

Commit bac677e

Browse files
committed
Fix rspec
1 parent a584a59 commit bac677e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

spec/lib/msf/core/exploit/remote/browser_exploit_server_spec.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636
let(:expected_profile) do
3737
{
3838
:source=>'script',
39-
:os_name=>'Microsoft Windows',
40-
:os_flavor=>'XP',
39+
:os_name=>'Windows XP',
4140
:ua_name=>'MSIE',
4241
:ua_ver=>'8.0',
4342
:arch=>'x86',
@@ -210,13 +209,13 @@
210209

211210
describe "#extract_requirements" do
212211
it "finds all the recognizable keys" do
213-
requirements = {:os_flavor=>"XP", :ua_name=>"MSIE", :ua_ver=>"8.0"}
212+
requirements = {:os_name=>"Windows XP", :ua_name=>"MSIE", :ua_ver=>"8.0"}
214213
matches = server.extract_requirements(requirements)
215214
expect(matches).to eq(requirements)
216215
end
217216

218217
it "makes sure the keys are always symbols" do
219-
requirements = {'os_flavor'=>"XP", 'ua_name'=>"MSIE"}
218+
requirements = {'os_name'=>"Windows XP", 'ua_name'=>"MSIE"}
220219
matches = server.extract_requirements(requirements)
221220
matches.each do |k,v|
222221
expect(k.class).to eq(Symbol)

0 commit comments

Comments
 (0)