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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user