diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-05-20 16:39:25 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-05-20 16:39:25 +0200 |
commit | d17b05657153f4305e4112532c485239d49b77b8 (patch) | |
tree | 89890683aa8ec5f81298415b60cc890c958b2da2 /activerecord/test | |
parent | f9860fcbe2973025df6ccf4bba0431492af09575 (diff) | |
parent | 36fde2b704164ac02380518350f01a17d3e0208e (diff) | |
download | rails-d17b05657153f4305e4112532c485239d49b77b8.tar.gz rails-d17b05657153f4305e4112532c485239d49b77b8.tar.bz2 rails-d17b05657153f4305e4112532c485239d49b77b8.zip |
Merge pull request #15197 from sgrif/sg-delegate-type-cast-sqlite3
Delegate `#type_cast` to injected type objects on SQLite3
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/column_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/column_test.rb b/activerecord/test/cases/column_test.rb index fffcb19e56..c5d455f59c 100644 --- a/activerecord/test/cases/column_test.rb +++ b/activerecord/test/cases/column_test.rb @@ -146,7 +146,7 @@ module ActiveRecord if current_adapter?(:SQLite3Adapter) def test_binary_encoding - column = SQLite3Column.new("field", nil, Type::Binary.new) + column = SQLite3Column.new("field", nil, SQLite3Binary.new) utf8_string = "a string".encode(Encoding::UTF_8) type_cast = column.type_cast(utf8_string) |