Sha256: b4d3b575f794436f2cb42cacf8df5d9ea5d25819f16223b5b32509023d30dbef

Contents?: true

Size: 475 Bytes

Versions: 6

Compression:

Stored size: 475 Bytes

Contents

require 'minitest/autorun'
require 'beaker-hostgenerator/cli'
require 'beaker-hostgenerator/data'

class TestStdout < Minitest::Test

  def setup
    @stderr = StringIO.new
    @stdout = StringIO.new

    $stderr = @stderr
    $stdout = @stdout
  end

  def test_default_list_output
    BeakerHostGenerator::CLI.new(['--list']).execute!
    BeakerHostGenerator::Data.get_platforms(0).each do |spec_key|
      assert_match(/.*#{spec_key}.*/, @stdout.string)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
beaker-hostgenerator-0.8.0 test/test_stdout.rb
beaker-hostgenerator-0.7.4 test/test_stdout.rb
beaker-hostgenerator-0.7.3 test/test_stdout.rb
beaker-hostgenerator-0.7.2 test/test_stdout.rb
beaker-hostgenerator-0.7.1 test/test_stdout.rb
beaker-hostgenerator-0.7.0 test/test_stdout.rb