aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2016-07-31 22:03:57 +0900
committerRyuta Kamizono <kamipo@gmail.com>2016-08-16 22:46:59 +0900
commit46380674d31af542a07de93a21d6be3a9cddb64b (patch)
tree3d99af16e9694ea73be6bf0bdbd77191f6df0ba8 /activerecord/test/cases/associations
parent82ec6b36065e91fe0ec5a87f9419840618ce2c5d (diff)
downloadrails-46380674d31af542a07de93a21d6be3a9cddb64b.tar.gz
rails-46380674d31af542a07de93a21d6be3a9cddb64b.tar.bz2
rails-46380674d31af542a07de93a21d6be3a9cddb64b.zip
Fix inconsistent the signature of finder methods for collection association
`#second`, `#third`, etc finder methods was added in 03855e790de2224519f55382e3c32118be31eeff. But the signature of these methods is inconsistent with the original finder methods. And also the signature of `#first` and `#last` methods is different from the original. This commit fixes the inconsistency.
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r--activerecord/test/cases/associations/has_many_associations_test.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/activerecord/test/cases/associations/has_many_associations_test.rb b/activerecord/test/cases/associations/has_many_associations_test.rb
index d53c2b0c51..ece20a8f85 100644
--- a/activerecord/test/cases/associations/has_many_associations_test.rb
+++ b/activerecord/test/cases/associations/has_many_associations_test.rb
@@ -380,47 +380,38 @@ class HasManyAssociationsTest < ActiveRecord::TestCase
assert_no_queries do
bulbs.first()
- bulbs.first({})
end
assert_no_queries do
bulbs.second()
- bulbs.second({})
end
assert_no_queries do
bulbs.third()
- bulbs.third({})
end
assert_no_queries do
bulbs.fourth()
- bulbs.fourth({})
end
assert_no_queries do
bulbs.fifth()
- bulbs.fifth({})
end
assert_no_queries do
bulbs.forty_two()
- bulbs.forty_two({})
end
assert_no_queries do
bulbs.third_to_last()
- bulbs.third_to_last({})
end
assert_no_queries do
bulbs.second_to_last()
- bulbs.second_to_last({})
end
assert_no_queries do
bulbs.last()
- bulbs.last({})
end
end