Add another test for profile

bug/bundler_fix
sinn3r 2013-11-04 11:12:26 -06:00
parent 03ee1d070e
commit dc076273f7
1 changed files with 6 additions and 0 deletions

View File

@ -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")