aboutsummaryrefslogtreecommitdiffstats
path: root/test/attributes/test_attribute.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2016-12-29 01:14:01 -0500
committerRafael Mendonça França <rafaelmfranca@gmail.com>2016-12-29 01:14:51 -0500
commit1e24cd4525c7ff58f9f2d1323292c2d67244ec01 (patch)
treebd48510dd18101825cd7eab363a854bf4281f1ab /test/attributes/test_attribute.rb
parent6ef13ec5d29b3ec66900c60bcfdf1ac5be8d20ac (diff)
downloadrails-1e24cd4525c7ff58f9f2d1323292c2d67244ec01.tar.gz
rails-1e24cd4525c7ff58f9f2d1323292c2d67244ec01.tar.bz2
rails-1e24cd4525c7ff58f9f2d1323292c2d67244ec01.zip
Remove deprecated type cast support in Arel
Diffstat (limited to 'test/attributes/test_attribute.rb')
-rw-r--r--test/attributes/test_attribute.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/test/attributes/test_attribute.rb b/test/attributes/test_attribute.rb
index f6b73adf6a..928b23ed7b 100644
--- a/test/attributes/test_attribute.rb
+++ b/test/attributes/test_attribute.rb
@@ -996,14 +996,6 @@ module Arel
assert table.able_to_type_cast?
condition.to_sql.must_equal %("foo"."id" = 1 AND "foo"."other_id" = '2')
end
-
- it 'falls back to using the connection adapter for type casting' do
- table = Table.new(:users)
- condition = table["id"].eq("1")
-
- refute table.able_to_type_cast?
- condition.to_sql.must_equal %("users"."id" = 1)
- end
end
end
end