diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-12-29 01:20:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-29 01:20:38 -0500 |
commit | 003d6feb0d6086780b87bd80e8e8be78c10879cb (patch) | |
tree | bdd2c9fc0a3db074cde918c31b604213103fdc24 /test/attributes | |
parent | 1f5e99bb9c0da87deee796dd31f8e130a4cfd40b (diff) | |
parent | 3b1689f98c89f7e7a74c61e2894ed2bf81b2d56d (diff) | |
download | rails-003d6feb0d6086780b87bd80e8e8be78c10879cb.tar.gz rails-003d6feb0d6086780b87bd80e8e8be78c10879cb.tar.bz2 rails-003d6feb0d6086780b87bd80e8e8be78c10879cb.zip |
Merge pull request #462 from rails/arel-without-deprecation
Remove deprecated type cast support from Arel
Diffstat (limited to 'test/attributes')
-rw-r--r-- | test/attributes/test_attribute.rb | 8 |
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 |