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

test quoting a string with an unknown column type

This commit is contained in:
Aaron Patterson 2010-10-12 11:43:50 -07:00
parent 31b132aa9b
commit 0ca9c836c0

View file

@ -206,6 +206,10 @@ module ActiveRecord
string = ActiveSupport::Multibyte::Chars.new('lo\l')
assert_equal "'foo'", @quoter.quote(string, col)
end
def test_string_with_crazy_column
assert_equal "'lo\\\\l'", @quoter.quote('lo\l', FakeColumn.new(:foo))
end
end
end
end