aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-09-12 13:25:04 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-09-12 13:25:04 -0300
commit9c18beae641a954f818eeb8f349248341160debe (patch)
tree78f9341e1e3de5580bb3f0f65c504118131a1eff /actionview/test
parent329721e35194958ba86832e995775d02bacf8bc7 (diff)
parent061e48df26557bb0a667794df9772880846058cb (diff)
downloadrails-9c18beae641a954f818eeb8f349248341160debe.tar.gz
rails-9c18beae641a954f818eeb8f349248341160debe.tar.bz2
rails-9c18beae641a954f818eeb8f349248341160debe.zip
Merge pull request #11603 from jetthoughts/join_strings_instead_of_contactination
Cleanup: replace String concatenation by joining for excerpt helper
Diffstat (limited to 'actionview/test')
-rw-r--r--actionview/test/template/text_helper_test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionview/test/template/text_helper_test.rb b/actionview/test/template/text_helper_test.rb
index 1b2234f4e2..c2999fcb85 100644
--- a/actionview/test/template/text_helper_test.rb
+++ b/actionview/test/template/text_helper_test.rb
@@ -314,6 +314,9 @@ class TextHelperTest < ActionView::TestCase
options = { :separator => "\n", :radius => 1 }
assert_equal("...very\nvery long\nstring", excerpt("my very\nvery\nvery long\nstring", 'long', options))
+
+ assert_equal excerpt('This is a beautiful morning', 'a'),
+ excerpt('This is a beautiful morning', 'a', separator: nil)
end
def test_word_wrap