aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-05-20 06:16:47 -0700
committerSean Griffin <sean@thoughtbot.com>2014-05-20 07:36:58 -0700
commit36fde2b704164ac02380518350f01a17d3e0208e (patch)
tree0c6722d237ffd583cef9e56a477c98ee6d80b543 /activerecord/test/cases
parent528aff12888aaad131baab488fa1eabe6d2634fa (diff)
downloadrails-36fde2b704164ac02380518350f01a17d3e0208e.tar.gz
rails-36fde2b704164ac02380518350f01a17d3e0208e.tar.bz2
rails-36fde2b704164ac02380518350f01a17d3e0208e.zip
Delegate `#type_cast` to injected type objects on SQLite3
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/column_test.rb2
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)