about summary refs log tree commit diff
path: root/spec/models/form/status_batch_spec.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-08-30 00:18:08 +0200
committerGitHub <noreply@github.com>2019-08-30 00:18:08 +0200
commit2848c08953a8555e06791170dbf1090575e05d8a (patch)
tree53e8e98051c24ac4fb32ce5692e241b6a6391de3 /spec/models/form/status_batch_spec.rb
parent79725f659d5e9c449df0ff73f9363407a0a064bd (diff)
parent969d04385157175dc9c9f46987976d8fc5771707 (diff)
Merge pull request #1208 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'spec/models/form/status_batch_spec.rb')
-rw-r--r--spec/models/form/status_batch_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/form/status_batch_spec.rb b/spec/models/form/status_batch_spec.rb
index 00c790a11..f9c58c90f 100644
--- a/spec/models/form/status_batch_spec.rb
+++ b/spec/models/form/status_batch_spec.rb
@@ -41,12 +41,12 @@ describe Form::StatusBatch do
 
     it 'call RemovalWorker' do
       form.save
-      expect(RemovalWorker).to have_received(:perform_async).with(status.id)
+      expect(RemovalWorker).to have_received(:perform_async).with(status.id, redraft: false)
     end
 
     it 'do not call RemovalWorker' do
       form.save
-      expect(RemovalWorker).not_to have_received(:perform_async).with(another_status.id)
+      expect(RemovalWorker).not_to have_received(:perform_async).with(another_status.id, redraft: false)
     end
   end
 end