From 457b29788cea513b76414a22bdc589ef6f0e96ff Mon Sep 17 00:00:00 2001 From: David Laprade Date: Tue, 13 Mar 2018 15:31:59 -0400 Subject: [PATCH] Fix spec failures caused by PersistParameters interactor --- spec/interactors/cangaroo/perform_flow_spec.rb | 3 ++- spec/jobs/cangaroo/push_job_spec.rb | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/interactors/cangaroo/perform_flow_spec.rb b/spec/interactors/cangaroo/perform_flow_spec.rb index e963fe8..03c4be1 100644 --- a/spec/interactors/cangaroo/perform_flow_spec.rb +++ b/spec/interactors/cangaroo/perform_flow_spec.rb @@ -9,7 +9,8 @@ let(:interactors) do [Cangaroo::ValidateJsonSchema, Cangaroo::CountJsonObject, - Cangaroo::PerformJobs] + Cangaroo::PerformJobs, + Cangaroo::PersistParameters] end it { is_expected.to eql interactors } diff --git a/spec/jobs/cangaroo/push_job_spec.rb b/spec/jobs/cangaroo/push_job_spec.rb index a61238d..b833bab 100644 --- a/spec/jobs/cangaroo/push_job_spec.rb +++ b/spec/jobs/cangaroo/push_job_spec.rb @@ -47,7 +47,8 @@ module Cangaroo job.perform_now expect(Cangaroo::PerformFlow).to have_received(:call) .once - .with(source_connection: destination_connection, + .with(flow: job, + source_connection: destination_connection, json_body: connection_response, jobs: Rails.configuration.cangaroo.jobs) end