Sha256: 2cf59ed8a290b3b32607ce45e0cbc0dc47505f6b512d9dd9ccedbabf02f70954

Contents?: true

Size: 450 Bytes

Versions: 4

Compression:

Stored size: 450 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
    out = capture_stdout { SolusVM::CLI.start %W(version) }
    assert_match SolusVM::VERSION, out.string
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solusvm-2.0.1.beta6 test/solusvm/test_cli.rb
solusvm-2.0.0.beta6 test/solusvm/test_cli.rb
solusvm-2.0.0.beta5 test/solusvm/test_cli.rb
solusvm-2.0.0.beta4 test/solusvm/test_cli.rb