Fix os detection rspec

no more window
bug/bundler_fix
sinn3r 2014-09-20 21:29:13 -05:00
parent 7bab825224
commit cd70014446
1 changed files with 3 additions and 3 deletions

View File

@ -7,21 +7,21 @@ describe Rex::Exploitation::Js::Detect do
context ".os" do context ".os" do
it "should load the OS detection in Javascript" do it "should load the OS detection in Javascript" do
js = Rex::Exploitation::Js::Detect.os.to_s js = Rex::Exploitation::Js::Detect.os.to_s
js.should =~ /window\.os_detect/ js.should =~ /os_detect/
end end
end end
context ".ie_addons" do context ".ie_addons" do
it "should load the IE Addons detection in Javascript" do it "should load the IE Addons detection in Javascript" do
js = Rex::Exploitation::Js::Detect.ie_addons.to_s js = Rex::Exploitation::Js::Detect.ie_addons.to_s
js.should =~ /window\.ie_addons_detect/ js.should =~ /ie_addons_detect/
end end
end end
context ".misc_addons" do context ".misc_addons" do
it "should load the misc Addons detection in Javascript" do it "should load the misc Addons detection in Javascript" do
js = Rex::Exploitation::Js::Detect.misc_addons.to_s js = Rex::Exploitation::Js::Detect.misc_addons.to_s
js.should =~ /window\.misc_addons_detect/ js.should =~ /misc_addons_detect/
end end
end end