Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 neerajdotname authored josevalim committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/primary_keys_test.rb
4 activerecord/test/cases/primary_keys_test.rb
View
@@ -13,7 +13,7 @@ def test_to_key_with_default_primary_key
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 @@ def test_to_key_with_customized_primary_key
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
Please sign in to comment.
Something went wrong with that request. Please try again.