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:
parent
19537ecd0f
commit
45973ac3c7
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue