/vendor/gems/facets-2.4.5/test/core/string/test_end_with.rb

https://bitbucket.org/mediashelf/fedora-migrator · Ruby · 12 lines · 8 code · 4 blank · 0 comment · 0 complexity · 47c6f47d7bc5d92ebb118d3ecdb25555 MD5 · raw file

  1. require 'facets/string/end_with'
  2. require 'test/unit'
  3. class Test_String < Test::Unit::TestCase
  4. def test_end_with?
  5. s = "xxboo"
  6. assert( s.end_with?('boo') )
  7. end
  8. end