Fix @artist.ban! test case.

Must use an admin in this test now because admin privileges are needed
to create the `banned_artist` tag implication.

(fixes regression in 7e3284c)
This commit is contained in:
evazion
2016-10-20 21:58:52 -05:00
parent 8b46726166
commit 52491f4486

View File

@@ -478,8 +478,10 @@ class PostTest < ActiveSupport::TestCase
context "with a banned artist" do
setup do
@artist = FactoryGirl.create(:artist)
@artist.ban!
CurrentUser.scoped(FactoryGirl.create(:admin_user)) do
@artist = FactoryGirl.create(:artist)
@artist.ban!
end
@post = FactoryGirl.create(:post, :tag_string => @artist.name)
end