mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
expected value should come first in assert_equal
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
parent
6caf943ace
commit
0fce4ae57f
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ class PrimaryKeysTest < ActiveRecord::TestCase
|
||||||
topic = Topic.new
|
topic = Topic.new
|
||||||
assert topic.to_key.nil?
|
assert topic.to_key.nil?
|
||||||
topic = Topic.find(1)
|
topic = Topic.find(1)
|
||||||
assert_equal topic.to_key, [1]
|
assert_equal [1], topic.to_key
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_to_key_with_customized_primary_key
|
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
|
def test_to_key_with_primary_key_after_destroy
|
||||||
topic = Topic.find(1)
|
topic = Topic.find(1)
|
||||||
topic.destroy
|
topic.destroy
|
||||||
assert_equal topic.to_key, [1]
|
assert_equal [1], topic.to_key
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_integer_key
|
def test_integer_key
|
||||||
|
|
Loading…
Reference in a new issue