aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/base_test.rb
diff options
context:
space:
mode:
authorMiguel Grazziotin <miguelgraz@gmail.com>2015-06-03 20:42:52 -0300
committerMiguel Grazziotin <miguelgraz@gmail.com>2015-06-03 20:42:52 -0300
commit24389135b2eac027f3079476e776587c5f74b350 (patch)
tree738d7a815f30586c0ff09cf1ffc6292fad4719ba /activerecord/test/cases/base_test.rb
parentdcee87c9fc2f16e240a90c564a82d23e9f9e9181 (diff)
downloadrails-24389135b2eac027f3079476e776587c5f74b350.tar.gz
rails-24389135b2eac027f3079476e776587c5f74b350.tar.bz2
rails-24389135b2eac027f3079476e776587c5f74b350.zip
[#20338] improving implementation, fixing and adding some more specs
Diffstat (limited to 'activerecord/test/cases/base_test.rb')
-rw-r--r--activerecord/test/cases/base_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb
index 31c31e4329..9c62bbc7bd 100644
--- a/activerecord/test/cases/base_test.rb
+++ b/activerecord/test/cases/base_test.rb
@@ -521,7 +521,8 @@ class BasicsTest < ActiveRecord::TestCase
end
def test_find_by_slug_with_array
- assert_equal Topic.find(['1-meowmeow', '2-hello']), Topic.find([1, 2])
+ assert_equal Topic.find([1, 2]), Topic.find(['1-meowmeow', '2-hello'])
+ assert_equal 'The Second Topic of the day', Topic.find(['2-hello', '1-meowmeow']).first.title
end
def test_find_by_slug_with_range