diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-12 11:43:50 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-12 11:43:50 -0700 |
commit | 0ca9c836c09865056c6c85f29d045e1c9c40a993 (patch) | |
tree | afd2b08e7a97733b959d7fa67e66495e5c231673 | |
parent | 31b132aa9b16bb66446839af888fdff4bad86bcf (diff) | |
download | rails-0ca9c836c09865056c6c85f29d045e1c9c40a993.tar.gz rails-0ca9c836c09865056c6c85f29d045e1c9c40a993.tar.bz2 rails-0ca9c836c09865056c6c85f29d045e1c9c40a993.zip |
test quoting a string with an unknown column type
-rw-r--r-- | activerecord/test/cases/quoting_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/quoting_test.rb b/activerecord/test/cases/quoting_test.rb index 08227d4379..4cc81d0735 100644 --- a/activerecord/test/cases/quoting_test.rb +++ b/activerecord/test/cases/quoting_test.rb @@ -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 |