mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix "warning: BigDecimal.new is deprecated"
This commit is contained in:
parent
a4e226fb2d
commit
7d2b8f3ac9
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ class ArgumentSerializationTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
[ nil, 1, 1.0, 1_000_000_000_000_000_000_000,
|
||||
"a", true, false, BigDecimal.new(5),
|
||||
"a", true, false, BigDecimal(5),
|
||||
:a, 1.day, Date.new(2001, 2, 3), Time.new(2002, 10, 31, 2, 2, 2, "+02:00"),
|
||||
DateTime.new(2001, 2, 3, 4, 5, 6, "+03:00"),
|
||||
ActiveSupport::TimeWithZone.new(Time.utc(1999, 12, 31, 23, 59, 59), ActiveSupport::TimeZone["UTC"]),
|
||||
|
|
Loading…
Reference in a new issue