Fix order-dependent test

This commit is contained in:
Mitchell Hashimoto 2011-01-12 00:14:16 -08:00
parent f7666df24b
commit 4e5a7aa6bf
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ class CommandHelpersTest < Test::Unit::TestCase
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
@ -64,7 +64,7 @@ class CommandHelpersTest < Test::Unit::TestCase
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