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
assert topic.to_key.nil?
topic = Topic.find(1)
assert_equal topic.to_key, [1]
assert_equal [1], topic.to_key
end
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
topic = Topic.find(1)
topic.destroy
assert_equal topic.to_key, [1]
assert_equal [1], topic.to_key
end
def test_integer_key