diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-12-15 10:57:53 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-15 10:57:53 +0900 |
commit | 67b9dbcc1cfce6694ab18c9629b233979506fbf0 (patch) | |
tree | e3123654767a935bb5e9feb32f5f27720525570c /actionpack/test | |
parent | 36291970341057bbf5f818d5ee0c5e77ab14a308 (diff) | |
parent | e4a6a23aa77185127ce9609777820fab14a689bb (diff) | |
download | rails-67b9dbcc1cfce6694ab18c9629b233979506fbf0.tar.gz rails-67b9dbcc1cfce6694ab18c9629b233979506fbf0.tar.bz2 rails-67b9dbcc1cfce6694ab18c9629b233979506fbf0.zip |
Merge pull request #31460 from yahonda/deprecated_bigdecimal_new_ap_av_aj_as_guides
Suppress `warning: BigDecimal.new is deprecated`
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/parameters/parameters_permit_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/parameters/parameters_permit_test.rb b/actionpack/test/controller/parameters/parameters_permit_test.rb index ebdaca0162..e9b94b056b 100644 --- a/actionpack/test/controller/parameters/parameters_permit_test.rb +++ b/actionpack/test/controller/parameters/parameters_permit_test.rb @@ -59,7 +59,7 @@ class ParametersPermitTest < ActiveSupport::TestCase test "key: permitted scalar values" do values = ["a", :a, nil] - values += [0, 1.0, 2**128, BigDecimal.new(1)] + values += [0, 1.0, 2**128, BigDecimal(1)] values += [true, false] values += [Date.today, Time.now, DateTime.now] values += [STDOUT, StringIO.new, ActionDispatch::Http::UploadedFile.new(tempfile: __FILE__), |