Update `Ajax::AnswerController` test to expect multiple `ShareWorker` jobs
This commit is contained in:
parent
b0fce22ef1
commit
fa025ced92
|
@ -27,7 +27,9 @@ describe Ajax::AnswerController, :ajax_controller, type: :controller do
|
||||||
|
|
||||||
it "enqueues a job for sharing the answer to social networks" do
|
it "enqueues a job for sharing the answer to social networks" do
|
||||||
subject
|
subject
|
||||||
expect(ShareWorker).to have_enqueued_sidekiq_job(user.id, Answer.last.id, shared_services)
|
shared_services.each do |service|
|
||||||
|
expect(ShareWorker).to have_enqueued_sidekiq_job(user.id, Answer.last.id, service)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
include_examples "returns the expected response"
|
include_examples "returns the expected response"
|
||||||
|
|
Loading…
Reference in New Issue