Sha256: 3682418d7c9c5194ff08a4967c5936c8170daeaf373480f61713b6dde17d7f39
Contents?: true
Size: 572 Bytes
Versions: 3
Compression:
Stored size: 572 Bytes
Contents
require 'test/unit' require File.dirname(__FILE__) + "/../lib/slugify_string" class StringSlugifyTest < Test::Unit::TestCase def test_slugify assert_nothing_raised do assert_equal "dummy", "dummy".slugify end assert_equal 'test-test', 'tést test'.slugify assert_equal 'test--test', 'test test'.slugify assert_equal 'test-test', 'test test'.slugify(true) end def test_slugify_trim assert_nothing_raised do assert_equal 'test-test', 'test test'.slugify_trim end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
slugify-1.0.4 | tests/string_slugify_test.rb |
slugify-1.0.3 | tests/string_slugify_test.rb |
slugify-1.0.2 | tests/string_slugify_test.rb |