diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-02-18 09:59:58 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-02-18 09:59:58 +0900 |
commit | 7d2b8f3ac98e11ab34e3395dd921984b8dd61e9a (patch) | |
tree | ed72b12638c909b7e1749fca9ed588f108334d37 | |
parent | a4e226fb2d4ae533b6ac668c38b6923b5eb5db0a (diff) | |
download | rails-7d2b8f3ac98e11ab34e3395dd921984b8dd61e9a.tar.gz rails-7d2b8f3ac98e11ab34e3395dd921984b8dd61e9a.tar.bz2 rails-7d2b8f3ac98e11ab34e3395dd921984b8dd61e9a.zip |
Fix "warning: BigDecimal.new is deprecated"
-rw-r--r-- | activejob/test/cases/argument_serialization_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activejob/test/cases/argument_serialization_test.rb b/activejob/test/cases/argument_serialization_test.rb index ff6ac6fc43..5d27813832 100644 --- a/activejob/test/cases/argument_serialization_test.rb +++ b/activejob/test/cases/argument_serialization_test.rb @@ -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"]), |