From 11684331d4f9678aa105e8cd3b1ea692d8e43c73 Mon Sep 17 00:00:00 2001 From: Mac Siri Date: Thu, 10 Jan 2019 16:33:58 -0500 Subject: [PATCH] Silence Delayed::Workers in spec [ci skip] --- spec/controllers/internal_users_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/controllers/internal_users_controller_spec.rb b/spec/controllers/internal_users_controller_spec.rb index 45d679a36..06d8c08c3 100644 --- a/spec/controllers/internal_users_controller_spec.rb +++ b/spec/controllers/internal_users_controller_spec.rb @@ -39,7 +39,7 @@ RSpec.describe "internal/users", type: :request do create(:reaction, reactable: comment2, reactable_type: "Comment", user: user2) # create user3 reaction to offending article create(:reaction, reactable: article, reactable_type: "Article", user: user3, category: "like") - Delayed::Worker.new(quiet: false).work_off + Delayed::Worker.new(quiet: true).work_off end def offender_activity_on_other_content @@ -49,7 +49,7 @@ RSpec.describe "internal/users", type: :request do comment = create(:comment, commentable_type: "Article", commentable: article2, user: user) # user3 reacts to offender comment create(:reaction, reactable: comment, reactable_type: "Comment", user: user3) - Delayed::Worker.new(quiet: false).work_off + Delayed::Worker.new(quiet: true).work_off end it "reassigns username and removes profile info" do