This commit is contained in:
r888888888
2013-08-07 13:00:25 -07:00
parent 1c44aa0271
commit 3edf160887
2 changed files with 13 additions and 0 deletions

View File

@@ -205,5 +205,12 @@ class ArtistTest < ActiveSupport::TestCase
artist.reload
assert_equal("yyy", artist.other_names)
end
should "update the category of the tag" do
tag = FactoryGirl.create(:tag, :name => "abc")
artist = FactoryGirl.create(:artist, :name => "abc")
tag.reload
assert_equal(Tag.categories.artist, tag.category)
end
end
end