Sha256: 8274c79c24c079376a60187abb3b7f95759f33146ecbba461bc9e14342eadca7

Contents?: true

Size: 429 Bytes

Versions: 4

Compression:

Stored size: 429 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 %W(version)
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solusvm-1.4.0 test/solusvm/test_cli.rb
solusvm-1.3.1 test/solusvm/test_cli.rb
solusvm-1.3.0 test/solusvm/test_cli.rb
solusvm-1.2.1 test/solusvm/test_cli.rb