spec/helpers.rb in beaker-pe-1.9.1 vs spec/helpers.rb in beaker-pe-1.10.0

- old
+ new

@@ -24,12 +24,10 @@ end module HostHelpers HOST_DEFAULTS = { :platform => 'unix', - :snapshot => 'pe', - :box => 'box_name', :roles => ['agent'], :snapshot => 'snap', :ip => 'default.ip.address', :box => 'default_box_name', :box_url => 'http://default.box.url', @@ -76,12 +74,12 @@ def make_host_opts name, opts make_opts.merge( { 'HOSTS' => { name => opts } } ).merge( opts ) end def make_host name, host_hash - host_hash = StringifyHash.new.merge(HOST_DEFAULTS.merge(host_hash)) + host_hash = Beaker::Options::OptionsHash.new.merge(HOST_DEFAULTS.merge(host_hash)) - host = make_opts.merge(host_hash) + host = Beaker::Host.create( name, host_hash, make_opts) allow(host).to receive( :name ).and_return( name ) allow(host).to receive( :hostname ).and_return( "#{name}.test" ) allow(host).to receive( :to_s ).and_return( name ) allow(host).to receive( :exec ).and_return( generate_result( name, host_hash ) )