aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2017-01-12 17:39:16 +0900
committerAkira Matsuda <ronnie@dio.jp>2017-01-12 17:45:37 +0900
commitb70fc698e157f2a768ba42efac08c08f4786b01c (patch)
tree6cfff47fe83d3c6667c0c9d727b168f8de421518 /activesupport
parentd688814a67f4b61aafeddb5142dcc645be3df81a (diff)
downloadrails-b70fc698e157f2a768ba42efac08c08f4786b01c.tar.gz
rails-b70fc698e157f2a768ba42efac08c08f4786b01c.tar.bz2
rails-b70fc698e157f2a768ba42efac08c08f4786b01c.zip
Reduce string objects by using \ instead of + or << for concatenating strings
(I personally prefer writing one string in one line no matter how long it is, though)
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/core_ext/string_ext_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/string_ext_test.rb b/activesupport/test/core_ext/string_ext_test.rb
index 00685cd952..5d90fa2509 100644
--- a/activesupport/test/core_ext/string_ext_test.rb
+++ b/activesupport/test/core_ext/string_ext_test.rb
@@ -222,7 +222,7 @@ class StringInflectionsTest < ActiveSupport::TestCase
original = %{\u205f\u3000 A string surrounded by various unicode spaces,
with tabs(\t\t), newlines(\n\n), unicode nextlines(\u0085\u0085) and many spaces( ). \u00a0\u2007}
- expected = "A string surrounded by various unicode spaces, " +
+ expected = "A string surrounded by various unicode spaces, " \
"with tabs( ), newlines( ), unicode nextlines( ) and many spaces( )."
# Make sure squish returns what we expect: