tests: fix artist ban tests.

This commit is contained in:
evazion
2020-12-01 14:16:47 -06:00
parent 048db3aacb
commit 45d050d918
2 changed files with 2 additions and 0 deletions

View File

@@ -66,6 +66,7 @@ class ArtistTest < ActiveSupport::TestCase
@post = FactoryBot.create(:post, :tag_string => "aaa")
@admin = FactoryBot.create(:admin_user)
@artist.ban!(banner: @admin)
perform_enqueued_jobs
@post.reload
end

View File

@@ -547,6 +547,7 @@ class PostTest < ActiveSupport::TestCase
CurrentUser.scoped(FactoryBot.create(:admin_user)) do
@artist = FactoryBot.create(:artist)
@artist.ban!
perform_enqueued_jobs
end
@post = FactoryBot.create(:post, :tag_string => @artist.name)
end