be_nil
parent
f98587181d
commit
9a8e45f451
|
@ -109,14 +109,14 @@ describe Msf::Exploit::Remote::BrowserExploitServer do
|
||||||
server.start_service
|
server.start_service
|
||||||
server.init_profile(random)
|
server.init_profile(random)
|
||||||
p = server.get_profile("non_existent_profile")
|
p = server.get_profile("non_existent_profile")
|
||||||
p.should eq(nil)
|
p.should be_nil
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should return a profile if found" do
|
it "should return a profile if found" do
|
||||||
server.start_service
|
server.start_service
|
||||||
server.init_profile(random)
|
server.init_profile(random)
|
||||||
p = server.get_profile(random)
|
p = server.get_profile(random)
|
||||||
p[random].should_not eq(nil)
|
p[random].should_not be_nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue