From 4804cb485c20aa1edc294bd0be887fe2bf2a4379 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 12 Oct 2010 11:30:34 -0700 Subject: [PATCH] test quoting a string with a float column --- activerecord/test/cases/quoting_test.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/activerecord/test/cases/quoting_test.rb b/activerecord/test/cases/quoting_test.rb index 83b5a95995..da88b9e4c4 100644 --- a/activerecord/test/cases/quoting_test.rb +++ b/activerecord/test/cases/quoting_test.rb @@ -168,6 +168,11 @@ module ActiveRecord assert_equal "1", @quoter.quote('1', FakeColumn.new(:integer)) assert_equal "1", @quoter.quote('1.2', FakeColumn.new(:integer)) end + + def test_quote_string_float_column + assert_equal "1.0", @quoter.quote('1', FakeColumn.new(:float)) + assert_equal "1.2", @quoter.quote('1.2', FakeColumn.new(:float)) + end end end end