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:
parent
50ad7f6561
commit
4804cb485c
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue