diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-05-25 09:30:13 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-05-26 09:04:17 -0700 |
commit | 597d9c8af80393f8a3fffd7b935674356e9b73b5 (patch) | |
tree | 58db83949cf15d49408b844b78d6869a33f70fb8 /activerecord/test/cases/adapters/sqlite3 | |
parent | d075c84320fab51992a1ab7d020c62ff1bad0b4e (diff) | |
download | rails-597d9c8af80393f8a3fffd7b935674356e9b73b5.tar.gz rails-597d9c8af80393f8a3fffd7b935674356e9b73b5.tar.bz2 rails-597d9c8af80393f8a3fffd7b935674356e9b73b5.zip |
Remove checks against `column.type` in abstract adapter quoting
The intention is to eventually remove `column` from the arguments list
both for `quote` and for `type_cast` entirely. This is the first step
to that end.
Diffstat (limited to 'activerecord/test/cases/adapters/sqlite3')
-rw-r--r-- | activerecord/test/cases/adapters/sqlite3/quoting_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/adapters/sqlite3/quoting_test.rb b/activerecord/test/cases/adapters/sqlite3/quoting_test.rb index 0c4f06d6a9..209b7f70c9 100644 --- a/activerecord/test/cases/adapters/sqlite3/quoting_test.rb +++ b/activerecord/test/cases/adapters/sqlite3/quoting_test.rb @@ -15,10 +15,10 @@ module ActiveRecord def test_type_cast_binary_encoding_without_logger @conn.extend(Module.new { def logger; end }) - column = Struct.new(:type, :name).new(:string, "foo") + cast_type = Type::String.new binary = SecureRandom.hex expected = binary.dup.encode!(Encoding::UTF_8) - assert_equal expected, @conn.type_cast(binary, column) + assert_equal expected, @conn.type_cast(binary, cast_type) end def test_type_cast_symbol |