diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-07-16 22:24:18 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-07-18 15:13:38 +0200 |
commit | 0fce4ae57fa356e9eca7059a4ff6a67e68c37961 (patch) | |
tree | ead81d03b3e203bf258a2f30eadcf5f8c1db5c33 | |
parent | 6caf943ace63c5d53ad95f4835ea58caea7eb22e (diff) | |
download | rails-0fce4ae57fa356e9eca7059a4ff6a67e68c37961.tar.gz rails-0fce4ae57fa356e9eca7059a4ff6a67e68c37961.tar.bz2 rails-0fce4ae57fa356e9eca7059a4ff6a67e68c37961.zip |
expected value should come first in assert_equal
Signed-off-by: José Valim <jose.valim@gmail.com>
-rw-r--r-- | activerecord/test/cases/primary_keys_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/primary_keys_test.rb b/activerecord/test/cases/primary_keys_test.rb index 73f4b3848c..1e44237e0a 100644 --- a/activerecord/test/cases/primary_keys_test.rb +++ b/activerecord/test/cases/primary_keys_test.rb @@ -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 |