spec/beaker/hypervisor/vagrant_spec.rb in beaker-3.5.0 vs spec/beaker/hypervisor/vagrant_spec.rb in beaker-3.6.0
- old
+ new
@@ -373,12 +373,11 @@
expect( vagrant.get_ip_from_vagrant_file(host.name) ).to be === host[:ip]
end
end
- it "raises an error if it is unable to find an ip" do
- expect{ vagrant.get_ip_from_vagrant_file("unknown") }.to raise_error
-
+ it "returns nil if it is unable to find an ip" do
+ expect( vagrant.get_ip_from_vagrant_file("unknown") ).to be_nil
end
it "raises an error if no Vagrantfile is present" do
File.delete( vagrant.instance_variable_get( :@vagrant_file ) )
@hosts.each do |host|