Sha256: dd075a18057f9910fd789092497ddc519c25ba86b8fb8109ea9226d20835ce24

Contents?: true

Size: 456 Bytes

Versions: 3

Compression:

Stored size: 456 Bytes

Contents

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(cli_expand_base_arguments(["version"]))
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solusvm-1.2.0 test/solusvm/test_cli.rb
solusvm-1.1.0.beta2 test/solusvm/test_cli.rb
solusvm-1.1.0.beta1 test/solusvm/test_cli.rb