Sha256: 4cfb8f0c8a9748c2d6280c0b63fd08d05fc3b39785f24317b96fa0129631917d

Contents?: true

Size: 429 Bytes

Versions: 2

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

2 entries across 2 versions & 1 rubygems

Version Path
solusvm-2.0.0.beta2 test/solusvm/test_cli.rb
solusvm-2.0.0.beta1 test/solusvm/test_cli.rb