test/solusvm/test_cli.rb in solusvm-2.0.0.beta2 vs test/solusvm/test_cli.rb in solusvm-2.0.0.beta4
- old
+ new
@@ -8,10 +8,10 @@
# something was moved around.
Mocha::Configuration.prevent(:stubbing_non_existent_method)
end
def test_should_print_version
- $stdout.expects(:puts).with(SolusVM::VERSION)
- SolusVM::CLI.start %W(version)
+ out = capture_stdout { SolusVM::CLI.start %W(version) }
+ assert_match SolusVM::VERSION, out.string
end
end