diff options
author | Xavier Noria <fxn@hashref.com> | 2014-10-30 19:47:36 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2014-10-30 19:47:36 +0100 |
commit | 810b7914f39ad6a6168ff19a8c2761601654f998 (patch) | |
tree | 77c19c2829def6ba33b600434ef575cf20cd7e67 /activesupport | |
parent | c6f9518e243de02c1bc7627184771189bdaaadaf (diff) | |
parent | 64b09823e6a6b1e19218d3fd815bb65cd2e44f1e (diff) | |
download | rails-810b7914f39ad6a6168ff19a8c2761601654f998.tar.gz rails-810b7914f39ad6a6168ff19a8c2761601654f998.tar.bz2 rails-810b7914f39ad6a6168ff19a8c2761601654f998.zip |
Merge pull request #17440 from claudiob/remove-yet-another-redundant-to-s
Remove redundant `to_s` in interpolation
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/json/encoding_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/json/encoding_test.rb b/activesupport/test/json/encoding_test.rb index ad358ad21d..7e976aa772 100644 --- a/activesupport/test/json/encoding_test.rb +++ b/activesupport/test/json/encoding_test.rb @@ -68,7 +68,7 @@ class TestJSONEncoding < ActiveSupport::TestCase [ 1.0/0.0, %(null) ], [ -1.0/0.0, %(null) ], [ BigDecimal('0.0')/BigDecimal('0.0'), %(null) ], - [ BigDecimal('2.5'), %("#{BigDecimal('2.5').to_s}") ]] + [ BigDecimal('2.5'), %("#{BigDecimal('2.5')}") ]] StringTests = [[ 'this is the <string>', %("this is the \\u003cstring\\u003e")], [ 'a "string" with quotes & an ampersand', %("a \\"string\\" with quotes \\u0026 an ampersand") ], |