Skip to content

Commit 7261bef

Browse files
Apply suggestions from code review
Co-authored-by: Niklas van Schrick <mc.taucher2003@gmail.com> Signed-off-by: Raphael Götz <52959657+raphael-goetz@users.noreply.github.com>
1 parent a14718b commit 7261bef

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

spec/jobs/update_flow_for_project_job_spec.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
before do
1111
allow(FlowHandler).to receive(:update_flow)
12-
allow(FlowHandler).to receive(:delete_flow)
1312
end
1413

1514
it 'sends a valid flow update' do
@@ -18,15 +17,13 @@
1817
perform_enqueued_jobs { described_class.perform_later(flow.id) }
1918

2019
expect(FlowHandler).to have_received(:update_flow).with(flow)
21-
expect(FlowHandler).not_to have_received(:delete_flow)
2220
end
2321

2422
it 'does not send a deletion for a newly created invalid flow' do
2523
flow.update!(validation_status: :invalid)
2624

2725
perform_enqueued_jobs { described_class.perform_later(flow.id) }
2826

29-
expect(FlowHandler).not_to have_received(:delete_flow)
3027
expect(FlowHandler).not_to have_received(:update_flow)
3128
end
3229
end

0 commit comments

Comments
 (0)