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 $stdout.expects(:puts).with(Solusvm::VERSION) Solusvm::Cli.start %W(version) end end