Silence Delayed::Workers in spec [ci skip]

This commit is contained in:
Mac Siri 2019-01-10 16:33:58 -05:00 committed by GitHub
parent 6ade962480
commit 11684331d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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