fix more broken specs
parent
e34a3b5309
commit
d9b7a320ae
|
@ -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"
|
||||||
|
@ -85,8 +85,8 @@ describe Msf::Ui::Console::CommandDispatcher::Db do
|
||||||
"",
|
"",
|
||||||
"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
|
||||||
|
|
Loading…
Reference in New Issue