Sha256: 744529cdd4d03d2558d8b21f889cc427cc785b4153b4a2271cf6d59fc4568541
Contents?: true
Size: 638 Bytes
Versions: 4
Compression:
Stored size: 638 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', 'test_helper') require File.join(File.dirname(__FILE__), '..', '..', 'lib', 'core_ext', 'string') class StringTest < Test::Unit::TestCase def test_to_permalink assert_equal('Should_Strip_All_Non_Word_Chars', 'should strip *all* non-word chars!'.to_permalink) assert_equal('Should_Strip_White_Spaces', 'should strip white spaces'.to_permalink) assert_equal('Should_Titleize_Mixed_Case_Strings', 'sHoULD tItLEIzE mIxEd cAsE sTrINgS'.to_permalink) assert_equal('Should_Replace_Spaces_With_Underscores', 'should replace spaces with underscores'.to_permalink) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
talia_core-0.4.3 | test/core_ext/string_test.rb |
talia_core-0.4.2 | test/core_ext/string_test.rb |
talia_core-0.4.1 | test/core_ext/string_test.rb |
talia_core-0.4.0 | test/core_ext/string_test.rb |