Sha256: 7b369407c5a14bca417893aeffcf6aa3a30cccc7b0eb2b97581016797a5956de
Contents?: true
Size: 504 Bytes
Versions: 2
Compression:
Stored size: 504 Bytes
Contents
require 'minitest/autorun' 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 osinfo = BeakerHostGenerator::Data::Vmpooler.get_osinfo() osinfo.each_key do |spec_key| assert_match(/.*#{spec_key}.*/, @stdout.string) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
beaker-hostgenerator-0.5.0 | test/test_stdout.rb |
beaker-hostgenerator-0.4.0 | test/test_stdout.rb |