require 'test_helper' require 'solusvm/cli' class TestCLI < Test::Unit::TestCase def setup # Prevents mocha from stubbing non existent methods so that we now if the CLI is failing because # something was moved around. Mocha::Configuration.prevent(:stubbing_non_existent_method) end def test_should_print_version out = capture_stdout { SolusVM::CLI.start %W(version) } assert_match SolusVM::VERSION, out.string end end