diff options
author | Sean Griffin <sean@thoughtbot.com> | 2015-01-01 10:07:25 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-01-01 10:07:54 -0700 |
commit | 45973ac3c7ffef1fc5d46c3ee2e673f856f24106 (patch) | |
tree | f2faa99b9e3d7c727d71f460f8462b9421496f03 /activerecord | |
parent | 19537ecd0fcc888842a49007187c371fcb454d11 (diff) | |
download | rails-45973ac3c7ffef1fc5d46c3ee2e673f856f24106.tar.gz rails-45973ac3c7ffef1fc5d46c3ee2e673f856f24106.tar.bz2 rails-45973ac3c7ffef1fc5d46c3ee2e673f856f24106.zip |
Stop relying on columns in mysql quoting tests
The behavior tested by the removed lines is sufficiently covered
elsewhere.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/adapters/mysql/quoting_test.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/activerecord/test/cases/adapters/mysql/quoting_test.rb b/activerecord/test/cases/adapters/mysql/quoting_test.rb index d8a954efa8..a2206153e9 100644 --- a/activerecord/test/cases/adapters/mysql/quoting_test.rb +++ b/activerecord/test/cases/adapters/mysql/quoting_test.rb @@ -9,15 +9,11 @@ module ActiveRecord end def test_type_cast_true - c = Column.new(nil, 1, Type::Boolean.new) - assert_equal 1, @conn.type_cast(true, nil) - assert_equal 1, @conn.type_cast(true, c) + assert_equal 1, @conn.type_cast(true) end def test_type_cast_false - c = Column.new(nil, 1, Type::Boolean.new) - assert_equal 0, @conn.type_cast(false, nil) - assert_equal 0, @conn.type_cast(false, c) + assert_equal 0, @conn.type_cast(false) end end end |