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") @post = FactoryBot.create(:post, :tag_string => "aaa")
@admin = FactoryBot.create(:admin_user) @admin = FactoryBot.create(:admin_user)
@artist.ban!(banner: @admin) @artist.ban!(banner: @admin)
perform_enqueued_jobs
@post.reload @post.reload
end end

View File

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