test/test_stdout.rb in beaker-hostgenerator-0.5.0 vs test/test_stdout.rb in beaker-hostgenerator-0.6.0
- old
+ new
@@ -1,6 +1,7 @@
require 'minitest/autorun'
+require 'beaker-hostgenerator/data'
class TestStdout < Minitest::Test
def setup
@stderr = StringIO.new
@@ -14,11 +15,10 @@
begin
BeakerHostGenerator::CLI.new(['--list'])
rescue BeakerHostGenerator::Exceptions::SafeEarlyExit
end
- osinfo = BeakerHostGenerator::Data::Vmpooler.get_osinfo()
- osinfo.each_key do |spec_key|
+ BeakerHostGenerator::Data.get_platforms(0).each do |spec_key|
assert_match(/.*#{spec_key}.*/, @stdout.string)
end
end
end