spec/beaker/shared/host_manager_spec.rb in beaker-1.21.0 vs spec/beaker/shared/host_manager_spec.rb in beaker-2.0.0

- old
+ new

@@ -60,26 +60,27 @@ it "can execute a block against hosts identified by a string" do myhosts = host_handler.run_block_on( hosts, role0 ) do |hosts| hosts end expect( myhosts ).to be === hosts[0] - end it "can execute a block against hosts identified by a hostname" do myhosts = host_handler.run_block_on( hosts, hosts[0].name ) do |hosts| hosts end expect( myhosts ).to be === hosts[0] - end it "can execute a block against an array of hosts" do myhosts = host_handler.run_block_on( hosts ) do |hosts| hosts end expect( myhosts ).to be === hosts + end + it "receives an ArgumentError on empty host" do + expect { host_handler.run_block_on( [], role0 ) }.to raise_error(ArgumentError) end end end