Sha256: 4ede71611717b8c49d2c7b9094bb7307498fc171b146ae9e7fe4271923288e74
Contents?: true
Size: 583 Bytes
Versions: 41
Compression:
Stored size: 583 Bytes
Contents
# Encoding: utf-8 require 'test/unit' require File.dirname(__FILE__) + "/../lib/slugify" 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
41 entries across 41 versions & 2 rubygems