Permalink
Browse files

Fix another spec with thor any_instance

  • Loading branch information...
1 parent 6407cb3 commit 929edd1b53fb4955e77429efc7b745d267ea8d7b @rsanheim committed Feb 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/nachos/cli_spec.rb
View
2 spec/nachos/cli_spec.rb
@@ -37,8 +37,8 @@
end
it "displays info from main" do
+ Nachos::CLI.any_instance.stubs(:main).returns(mock(:info => "info here"))
cli = Nachos::CLI.new
- cli.stubs(:main).returns(mock(:info => "info here"))
cli.invoke(:info)
cli.shell.output.should include("info here")
end

0 comments on commit 929edd1

Please sign in to comment.