mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
test quoting of bigdecimals
This commit is contained in:
parent
ba0a6772bb
commit
8b33f66891
1 changed files with 6 additions and 0 deletions
|
@ -128,6 +128,12 @@ module ActiveRecord
|
|||
assert_equal bignum.to_s, @quoter.quote(bignum, nil)
|
||||
assert_equal bignum.to_s, @quoter.quote(bignum, Object.new)
|
||||
end
|
||||
|
||||
def test_quote_bigdecimal
|
||||
bigdec = BigDecimal.new((1 << 100).to_s)
|
||||
assert_equal bigdec.to_s('F'), @quoter.quote(bigdec, nil)
|
||||
assert_equal bigdec.to_s('F'), @quoter.quote(bigdec, Object.new)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue