diff options
author | Xavier Noria <fxn@hashref.com> | 2009-11-09 21:35:43 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2009-11-09 22:16:51 +0100 |
commit | c0bb4c6ed2f5a5676569746e7bfd70405346ef8f (patch) | |
tree | 000167d186734157c6b299caf369d00818db1e4f /activesupport/test/core_ext/string_ext_test.rb | |
parent | 004db18cb0f690486336f0fa141ad383c79f9558 (diff) | |
download | rails-c0bb4c6ed2f5a5676569746e7bfd70405346ef8f.tar.gz rails-c0bb4c6ed2f5a5676569746e7bfd70405346ef8f.tar.bz2 rails-c0bb4c6ed2f5a5676569746e7bfd70405346ef8f.zip |
String#start_with? and String#end_with? are not needed for Ruby >= 1.8.7, leaves their plural aliases though
Diffstat (limited to 'activesupport/test/core_ext/string_ext_test.rb')
-rw-r--r-- | activesupport/test/core_ext/string_ext_test.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/activesupport/test/core_ext/string_ext_test.rb b/activesupport/test/core_ext/string_ext_test.rb index 0f988e78a4..dd9e9e0ebb 100644 --- a/activesupport/test/core_ext/string_ext_test.rb +++ b/activesupport/test/core_ext/string_ext_test.rb @@ -185,17 +185,9 @@ class StringInflectionsTest < Test::Unit::TestCase assert s.starts_with?('hel') assert !s.starts_with?('el') - assert s.start_with?('h') - assert s.start_with?('hel') - assert !s.start_with?('el') - assert s.ends_with?('o') assert s.ends_with?('lo') assert !s.ends_with?('el') - - assert s.end_with?('o') - assert s.end_with?('lo') - assert !s.end_with?('el') end def test_string_squish |