Skip to content

Commit

Permalink
Adding payload_state to to job doubles
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly committed Aug 19, 2016
1 parent b1a97be commit 3386d1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/interactors/cangaroo/perform_jobs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class JobB < Cangaroo::Job; end
end

describe '.call' do
let(:job_a) { double('job_a', perform?: true, enqueue: nil) }
let(:job_b) { double('job_b', perform?: false, enqueue: nil) }
let(:job_a) { double('job_a', perform?: true, enqueue: nil, payload_state: :new) }
let(:job_b) { double('job_b', perform?: false, enqueue: nil, payload_state: :new) }

context 'payload with objects' do
let(:json_body) { load_fixture('json_payload_ok.json') }
Expand Down

0 comments on commit 3386d1b

Please sign in to comment.