Add Tag#label method

This commit is contained in:
Katrina Owen 2013-02-18 15:01:56 -07:00
parent f56fc1945c
commit 95a4ed6e4a
4 changed files with 10 additions and 2 deletions

View file

@ -41,5 +41,9 @@ class TagTest < ActiveSupport::TestCase
assert tag.name == "strip spaces"
end
def test_tag_label
assert_equal 'one-two-three', Tag.new(:name => 'one two three').label
end
end