Use correct calls to cmd_workspace

bug/bundler_fix
Jon Hart 2015-08-28 11:03:47 -07:00
parent fc7a93ac30
commit 52a11cc383
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
1 changed files with 6 additions and 6 deletions

View File

@ -544,7 +544,7 @@ describe Msf::Ui::Console::CommandDispatcher::Db do
end
it "should list all workspaces" do
db.cmd_workspace "-a foo"
db.cmd_workspace("-a", "foo")
db.cmd_workspace
@output.should =~ [
"default",
@ -555,7 +555,7 @@ describe Msf::Ui::Console::CommandDispatcher::Db do
describe "-a" do
it "should add workspaces" do
db.cmd_workspace "-a foo bar baf"
db.cmd_workspace("-a", "foo", "bar", "baf")
@output.should =~ [
"Added workspace: foo",
"Added workspace: bar",
@ -566,8 +566,8 @@ describe Msf::Ui::Console::CommandDispatcher::Db do
describe "-d" do
it "should delete a workspace" do
db.cmd_workspace "-a foo"
db.cmd_workspace "-d foo"
db.cmd_workspace("-a", "foo")
db.cmd_workspace("-d", "foo")
@output.should =~ [
"Deleted workspace: foo"
]
@ -576,8 +576,8 @@ describe Msf::Ui::Console::CommandDispatcher::Db do
describe "-D" do
it "should delete all workspaces" do
db.cmd_workspace "-a foo"
db.cmd_workspace "-D"
db.cmd_workspace("-a", "foo")
db.cmd_workspace("-D")
@output.should =~ [
"Deleted and recreated the default workspace",
"Deleted workspace: foo"