mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
test quoting a string with a float column
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user