Sha256: 7326c6d55ac18b8cc3b01a4d1af5343d2bc0a053de5aa6d65e67272736547ae7
Contents?: true
Size: 510 Bytes
Versions: 1
Compression:
Stored size: 510 Bytes
Contents
require 'minitest/autorun' 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 begin BeakerHostGenerator::CLI.new(['--list']) rescue BeakerHostGenerator::Exceptions::SafeEarlyExit end BeakerHostGenerator::Data.get_platforms(0).each do |spec_key| assert_match(/.*#{spec_key}.*/, @stdout.string) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
beaker-hostgenerator-0.6.0 | test/test_stdout.rb |