Skip to content

Commit 360ad26

Browse files
committed
Fix spec because I suck
1 parent 38382bb commit 360ad26

File tree

1 file changed

+13
-3
lines changed
  • spec/lib/msf/ui/console/command_dispatcher

1 file changed

+13
-3
lines changed

spec/lib/msf/ui/console/command_dispatcher/db_spec.rb

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,12 @@
546546
it "should list default workspace" do
547547
db.cmd_workspace
548548
expect(@output).to match_array [
549-
"* default"
549+
"",
550+
"Workspaces",
551+
"==========",
552+
"current name hosts services vulns creds loots notes",
553+
"------- ---- ----- -------- ----- ----- ----- -----",
554+
"* default 0 0 0 0 0 0"
550555
]
551556
end
552557

@@ -555,8 +560,13 @@
555560
@output = []
556561
db.cmd_workspace
557562
expect(@output).to match_array [
558-
" default",
559-
"* foo"
563+
"",
564+
"Workspaces",
565+
"==========",
566+
"current name hosts services vulns creds loots notes",
567+
"------- ---- ----- -------- ----- ----- ----- -----",
568+
" default 0 0 0 0 0 0",
569+
"* foo 0 0 0 0 0 0"
560570
]
561571
end
562572
end

0 commit comments

Comments
 (0)