aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2016-12-29 14:43:19 -0500
committerRafael Mendonça França <rafaelmfranca@gmail.com>2016-12-29 17:53:04 -0500
commitb4664864c972463c7437ad983832d2582186e886 (patch)
tree26e8023ad44724e53d0427a4c5143c04738366e2 /activerecord/test
parent931b4b4d64f9b4ea49589aeceed121dea57231c5 (diff)
downloadrails-b4664864c972463c7437ad983832d2582186e886.tar.gz
rails-b4664864c972463c7437ad983832d2582186e886.tar.bz2
rails-b4664864c972463c7437ad983832d2582186e886.zip
Remove deprecated support to passing a class as a value in a query
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/relations_test.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb
index 981c2d758d..2421adb19c 100644
--- a/activerecord/test/cases/relations_test.rb
+++ b/activerecord/test/cases/relations_test.rb
@@ -840,15 +840,6 @@ class RelationTest < ActiveRecord::TestCase
assert_equal author, authors.first
end
- class Mary < Author; end
-
- def test_find_by_classname
- Author.create!(name: Mary.name)
- assert_deprecated do
- assert_equal 1, Author.where(name: Mary).size
- end
- end
-
def test_find_by_id_with_list_of_ar
author = Author.first
authors = Author.find_by_id([author])