1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Stop relying on columns in mysql quoting tests

The behavior tested by the removed lines is sufficiently covered
elsewhere.
This commit is contained in:
Sean Griffin 2015-01-01 10:07:25 -07:00
parent 19537ecd0f
commit 45973ac3c7

View file

@ -9,15 +9,11 @@ module ActiveRecord
end end
def test_type_cast_true def test_type_cast_true
c = Column.new(nil, 1, Type::Boolean.new) assert_equal 1, @conn.type_cast(true)
assert_equal 1, @conn.type_cast(true, nil)
assert_equal 1, @conn.type_cast(true, c)
end end
def test_type_cast_false def test_type_cast_false
c = Column.new(nil, 1, Type::Boolean.new) assert_equal 0, @conn.type_cast(false)
assert_equal 0, @conn.type_cast(false, nil)
assert_equal 0, @conn.type_cast(false, c)
end end
end end
end end