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
1 changed files with 4 additions and 0 deletions

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