aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2016-12-29 15:39:50 -0500
committerRafael Mendonça França <rafaelmfranca@gmail.com>2016-12-29 17:53:04 -0500
commit4fc3366d9d99a0eb19e45ad2bf38534efbf8c8ce (patch)
tree1226535e69b77e2eadb2647fdddcba8b326d9f86 /activerecord/test/cases
parentfc3e67964753fb5166ccbd2030d7382e1976f393 (diff)
downloadrails-4fc3366d9d99a0eb19e45ad2bf38534efbf8c8ce.tar.gz
rails-4fc3366d9d99a0eb19e45ad2bf38534efbf8c8ce.tar.bz2
rails-4fc3366d9d99a0eb19e45ad2bf38534efbf8c8ce.zip
Remove deprecated support to passing arguments to `#select` when a block is provided.
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/associations/has_many_associations_test.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/activerecord/test/cases/associations/has_many_associations_test.rb b/activerecord/test/cases/associations/has_many_associations_test.rb
index b65b58e0a0..cbecfa84ff 100644
--- a/activerecord/test/cases/associations/has_many_associations_test.rb
+++ b/activerecord/test/cases/associations/has_many_associations_test.rb
@@ -788,13 +788,6 @@ class HasManyAssociationsTest < ActiveRecord::TestCase
assert_equal [1], posts(:welcome).comments.select { |c| c.id == 1 }.map(&:id)
end
- def test_select_with_block_and_specific_attributes
- assert_deprecated do
- comments = posts(:welcome).comments.select(:id, :body) { |c| c.id == 1 }
- assert_equal [1], comments.map(&:id)
- end
- end
-
def test_select_without_foreign_key
assert_equal companies(:first_firm).accounts.first.credit_limit, companies(:first_firm).accounts.select(:credit_limit).first.credit_limit
end