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 a float column

This commit is contained in:
Aaron Patterson 2010-10-12 11:30:34 -07:00
parent 50ad7f6561
commit 4804cb485c

View file

@ -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