tests: fix artist ban tests.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user