diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-12 11:30:34 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-12 11:30:34 -0700 |
commit | 4804cb485c20aa1edc294bd0be887fe2bf2a4379 (patch) | |
tree | fbffe7849fa52b9f4cffad6f8cd4a7698229c09e /activerecord/test | |
parent | 50ad7f6561aaff4f0acc00ad0c3ff8cf1217a0cc (diff) | |
download | rails-4804cb485c20aa1edc294bd0be887fe2bf2a4379.tar.gz rails-4804cb485c20aa1edc294bd0be887fe2bf2a4379.tar.bz2 rails-4804cb485c20aa1edc294bd0be887fe2bf2a4379.zip |
test quoting a string with a float column
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/quoting_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |