aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/relations_test.rb
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-12-30 14:44:34 -0500
committerGitHub <noreply@github.com>2016-12-30 14:44:34 -0500
commit5c76d01086009e5b40cb429a5e78cc41c5170543 (patch)
tree5b15118ef9ce185ff72ecca30e31db26be80b872 /activerecord/test/cases/relations_test.rb
parent18325d733360fc864eb800d95e56f404dfeeb7d6 (diff)
parentc6dcc37bee7e02066457cbbb4a7f3dbbc22159be (diff)
downloadrails-5c76d01086009e5b40cb429a5e78cc41c5170543.tar.gz
rails-5c76d01086009e5b40cb429a5e78cc41c5170543.tar.bz2
rails-5c76d01086009e5b40cb429a5e78cc41c5170543.zip
Merge pull request #27509 from kamipo/remove_remaining_deprecations
Remove remaining ActiveRecord deprecations
Diffstat (limited to 'activerecord/test/cases/relations_test.rb')
-rw-r--r--activerecord/test/cases/relations_test.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb
index 820e0fdae4..9519fec0c4 100644
--- a/activerecord/test/cases/relations_test.rb
+++ b/activerecord/test/cases/relations_test.rb
@@ -1633,17 +1633,11 @@ class RelationTest < ActiveRecord::TestCase
assert_equal ["Foo", "Foo"], query.map(&:name)
assert_sql(/DISTINCT/) do
assert_equal ["Foo"], query.distinct.map(&:name)
- assert_deprecated { assert_equal ["Foo"], query.uniq.map(&:name) }
end
assert_sql(/DISTINCT/) do
assert_equal ["Foo"], query.distinct(true).map(&:name)
- assert_deprecated { assert_equal ["Foo"], query.uniq(true).map(&:name) }
end
assert_equal ["Foo", "Foo"], query.distinct(true).distinct(false).map(&:name)
-
- assert_deprecated do
- assert_equal ["Foo", "Foo"], query.uniq(true).uniq(false).map(&:name)
- end
end
def test_doesnt_add_having_values_if_options_are_blank