test/vagrant/command/helpers_test.rb in vagrantup-0.6.9 vs test/vagrant/command/helpers_test.rb in vagrantup-0.7.0
- old
+ new
@@ -50,11 +50,11 @@
end
should "return the VM if no name is specified" do
instance = command([], @env)
assert_nothing_raised {
- assert_equal @env.vms.values, instance.target_vms
+ assert_equal @env.vms.values.sort, instance.target_vms.sort
}
end
end
context "with multivm" do
@@ -62,10 +62,10 @@
@env.stubs(:vms_ordered => [1, 2], :vms => {:one => 1, :two => 2})
end
should "return all the VMs if no name is specified" do
instance = command([], @env)
- assert_equal @env.vms.values, instance.target_vms
+ assert_equal @env.vms.values.sort, instance.target_vms.sort
end
should "return only the specified VM if a name is given" do
instance = command(["one"], @env)
assert_equal @env.vms[:one], instance.target_vms.first