Skip to content
Browse files

expected value should come first in assert_equal

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 6caf943 commit 0fce4ae57fa356e9eca7059a4ff6a67e68c37961 @neerajdotname neerajdotname committed with josevalim
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/primary_keys_test.rb
View
4 activerecord/test/cases/primary_keys_test.rb
@@ -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

0 comments on commit 0fce4ae

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