Skip to content

Commit

Permalink
Fix spec failures caused by PersistParameters interactor
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlaprade committed Mar 14, 2018
1 parent baccd11 commit 457b297
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion spec/interactors/cangaroo/perform_flow_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
let(:interactors) do
[Cangaroo::ValidateJsonSchema,
Cangaroo::CountJsonObject,
Cangaroo::PerformJobs]
Cangaroo::PerformJobs,
Cangaroo::PersistParameters]
end

it { is_expected.to eql interactors }
Expand Down
3 changes: 2 additions & 1 deletion spec/jobs/cangaroo/push_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 457b297

Please sign in to comment.