1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

expected value should come first in assert_equal

Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
Neeraj Singh 2010-07-16 22:24:18 -04:00 committed by José Valim
parent 6caf943ace
commit 0fce4ae57f

View file

@ -13,7 +13,7 @@ class PrimaryKeysTest < ActiveRecord::TestCase
topic = Topic.new topic = Topic.new
assert topic.to_key.nil? assert topic.to_key.nil?
topic = Topic.find(1) topic = Topic.find(1)
assert_equal topic.to_key, [1] assert_equal [1], topic.to_key
end end
def test_to_key_with_customized_primary_key def test_to_key_with_customized_primary_key
@ -26,7 +26,7 @@ class PrimaryKeysTest < ActiveRecord::TestCase
def test_to_key_with_primary_key_after_destroy def test_to_key_with_primary_key_after_destroy
topic = Topic.find(1) topic = Topic.find(1)
topic.destroy topic.destroy
assert_equal topic.to_key, [1] assert_equal [1], topic.to_key
end end
def test_integer_key def test_integer_key