fix more broken specs

bug/bundler_fix
David Maloney 2014-06-19 14:07:39 -05:00
parent e34a3b5309
commit d9b7a320ae
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2
1 changed files with 7 additions and 7 deletions

View File

@ -73,9 +73,9 @@ describe Msf::Ui::Console::CommandDispatcher::Db do
describe "-p" do describe "-p" do
before(:each) do before(:each) do
host = FactoryGirl.create(:mdm_host, :workspace => framework.db.workspace, :address => "192.168.0.1") host = FactoryGirl.create(:mdm_host, :workspace => framework.db.workspace, :address => "192.168.0.1")
FactoryGirl.create(:mdm_service, :host => host, :port => 1024) FactoryGirl.create(:mdm_service, :host => host, :port => 1024, name: 'Service1')
FactoryGirl.create(:mdm_service, :host => host, :port => 1025) FactoryGirl.create(:mdm_service, :host => host, :port => 1025, name: 'Service2')
FactoryGirl.create(:mdm_service, :host => host, :port => 1026) FactoryGirl.create(:mdm_service, :host => host, :port => 1026, name: 'Service3')
end end
it "should list services that are on a given port" do it "should list services that are on a given port" do
db.cmd_services "-p", "1024,1025" db.cmd_services "-p", "1024,1025"
@ -83,10 +83,10 @@ describe Msf::Ui::Console::CommandDispatcher::Db do
"Services", "Services",
"========", "========",
"", "",
"host port proto name state info", "host port proto name state info",
"---- ---- ----- ---- ----- ----", "---- ---- ----- ---- ----- ----",
"192.168.0.1 1024 snmp open ", "192.168.0.1 1024 snmp Service1 open ",
"192.168.0.1 1025 snmp open " "192.168.0.1 1025 snmp Service2 open "
] ]
end end
end end