diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2014-11-06 17:31:16 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2014-11-06 17:31:16 +0530 |
commit | 60c45b0d0aa89b3737e0706890d9552c2c98e38e (patch) | |
tree | 8d68bb67650e81cb404eb33589df143e7e665f41 /activesupport/test/core_ext/string_ext_test.rb | |
parent | 5dd3c3b2a0269eaa7cddfaed3136dc53dbf333e1 (diff) | |
parent | 54a9653a04f43917eab0b323ef4ba5b1fc6c05f4 (diff) | |
download | rails-60c45b0d0aa89b3737e0706890d9552c2c98e38e.tar.gz rails-60c45b0d0aa89b3737e0706890d9552c2c98e38e.tar.bz2 rails-60c45b0d0aa89b3737e0706890d9552c2c98e38e.zip |
Merge pull request #17526 from rishijain/update_docs_6
Update docs 6
Diffstat (limited to 'activesupport/test/core_ext/string_ext_test.rb')
-rw-r--r-- | activesupport/test/core_ext/string_ext_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/string_ext_test.rb b/activesupport/test/core_ext/string_ext_test.rb index 119e62369d..e32c178951 100644 --- a/activesupport/test/core_ext/string_ext_test.rb +++ b/activesupport/test/core_ext/string_ext_test.rb @@ -266,6 +266,12 @@ class StringInflectionsTest < ActiveSupport::TestCase assert_equal "This is a good day to die", original end + def test_remove_for_multiple_occurrences + original = "This is a good day to die to die" + assert_equal "This is a good day", original.remove(" to die") + assert_equal "This is a good day to die to die", original + end + def test_remove! original = "This is a very good day to die" assert_equal "This is a good day to die", original.remove!(" very") |