From 45d050d9188d4c8da1e114826f69cd52be1f276a Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 1 Dec 2020 14:16:47 -0600 Subject: [PATCH] tests: fix artist ban tests. --- test/unit/artist_test.rb | 1 + test/unit/post_test.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/test/unit/artist_test.rb b/test/unit/artist_test.rb index d82beccca..f63613241 100644 --- a/test/unit/artist_test.rb +++ b/test/unit/artist_test.rb @@ -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 diff --git a/test/unit/post_test.rb b/test/unit/post_test.rb index ef5c02c21..d08737624 100644 --- a/test/unit/post_test.rb +++ b/test/unit/post_test.rb @@ -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