aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/primary_keys_test.rb
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-07-16 22:24:18 -0400
committerJosé Valim <jose.valim@gmail.com>2010-07-18 15:13:38 +0200
commit0fce4ae57fa356e9eca7059a4ff6a67e68c37961 (patch)
treeead81d03b3e203bf258a2f30eadcf5f8c1db5c33 /activerecord/test/cases/primary_keys_test.rb
parent6caf943ace63c5d53ad95f4835ea58caea7eb22e (diff)
downloadrails-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>
Diffstat (limited to 'activerecord/test/cases/primary_keys_test.rb')
-rw-r--r--activerecord/test/cases/primary_keys_test.rb4
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