Skip to content
This repository
Browse code

expected value should come first in assert_equal

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
commit 0fce4ae57fa356e9eca7059a4ff6a67e68c37961 1 parent 6caf943
Neeraj Singh authored July 16, 2010 josevalim committed July 18, 2010
4  activerecord/test/cases/primary_keys_test.rb
@@ -13,7 +13,7 @@ def test_to_key_with_default_primary_key
13 13
     topic = Topic.new
14 14
     assert topic.to_key.nil?
15 15
     topic = Topic.find(1)
16  
-    assert_equal topic.to_key, [1]
  16
+    assert_equal [1], topic.to_key
17 17
   end
18 18
 
19 19
   def test_to_key_with_customized_primary_key
@@ -26,7 +26,7 @@ def test_to_key_with_customized_primary_key
26 26
   def test_to_key_with_primary_key_after_destroy
27 27
     topic = Topic.find(1)
28 28
     topic.destroy
29  
-    assert_equal topic.to_key, [1]
  29
+    assert_equal [1], topic.to_key
30 30
   end
31 31
 
32 32
   def test_integer_key

0 notes on commit 0fce4ae

Please sign in to comment.
Something went wrong with that request. Please try again.