aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/json
diff options
context:
space:
mode:
authorclaudiob <claudiob@gmail.com>2014-10-29 18:18:48 -0700
committerclaudiob <claudiob@gmail.com>2014-10-30 08:48:32 -0700
commit64b09823e6a6b1e19218d3fd815bb65cd2e44f1e (patch)
treec7eefcd011dade1060557a77dae72283851f39ee /activesupport/test/json
parent7cf4d5465deb48f448000e9b484a150261e1054f (diff)
downloadrails-64b09823e6a6b1e19218d3fd815bb65cd2e44f1e.tar.gz
rails-64b09823e6a6b1e19218d3fd815bb65cd2e44f1e.tar.bz2
rails-64b09823e6a6b1e19218d3fd815bb65cd2e44f1e.zip
Remove redundant `to_s` in interpolation
Diffstat (limited to 'activesupport/test/json')
-rw-r--r--activesupport/test/json/encoding_test.rb2
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") ],