diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-05-28 07:48:07 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-05-28 07:48:07 -0700 |
commit | 748f070895dc0d76a02a45e1be5c50ea67a79e85 (patch) | |
tree | e763864e3d9d8038cf3c3fbabc9b83dd463c41f0 /activerecord/test | |
parent | 7f73b9152cfc3f218cfc862e971ba56b94f6be10 (diff) | |
download | rails-748f070895dc0d76a02a45e1be5c50ea67a79e85.tar.gz rails-748f070895dc0d76a02a45e1be5c50ea67a79e85.tar.bz2 rails-748f070895dc0d76a02a45e1be5c50ea67a79e85.zip |
Remove unused `Column#coder`
It appears this property was added, but never actually used. It would be
broken if it were, as it only type casts one way.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/column_definition_test.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/activerecord/test/cases/column_definition_test.rb b/activerecord/test/cases/column_definition_test.rb index 45e48900ee..bcfd66b4bf 100644 --- a/activerecord/test/cases/column_definition_test.rb +++ b/activerecord/test/cases/column_definition_test.rb @@ -11,26 +11,6 @@ module ActiveRecord @viz = @adapter.schema_creation end - def test_can_set_coder - column = Column.new("title", nil, Type::String.new, "varchar(20)") - column.coder = YAML - assert_equal YAML, column.coder - end - - def test_encoded? - column = Column.new("title", nil, Type::String.new, "varchar(20)") - assert !column.encoded? - - column.coder = YAML - assert column.encoded? - end - - def test_type_case_coded_column - column = Column.new("title", nil, Type::String.new, "varchar(20)") - column.coder = YAML - assert_equal "hello", column.type_cast("--- hello") - end - # Avoid column definitions in create table statements like: # `title` varchar(255) DEFAULT NULL def test_should_not_include_default_clause_when_default_is_null |