Add another test for profile
parent
03ee1d070e
commit
dc076273f7
|
@ -103,6 +103,12 @@ describe Msf::Exploit::Remote::BrowserExploitServer do
|
|||
end
|
||||
|
||||
describe ".get_profile" do
|
||||
it "should only contain one hash for each profile" do
|
||||
server.init_profile(profile_name)
|
||||
p = server.get_profile(profile_name)
|
||||
p.length.should eq(1)
|
||||
end
|
||||
|
||||
it "should return nil when a profile isn't found" do
|
||||
server.init_profile(profile_name)
|
||||
p = server.get_profile("non_existent_profile")
|
||||
|
|
Loading…
Reference in New Issue