aboutsummaryrefslogtreecommitdiffstats
path: root/spec/workers
diff options
context:
space:
mode:
authorRobert2017-10-17 12:28:35 +0200
committerRobert2017-10-17 12:28:35 +0200
commit0b744d48fdc84445f593114fe61baaafca4e17f4 (patch)
treed15b8473b79cdd7fd809f3a942b2acec2cb8a2f9 /spec/workers
parentbacb624a9d0415337dfab6418de240cd2afa7305 (diff)
downloadchouette-core-0b744d48fdc84445f593114fe61baaafca4e17f4.tar.bz2
Fixes: #4727@0.1h; Added organisation to clone for and rebased master4727-clone-compliance-control-set
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/compliance_control_set_cloning_worker_spec.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/workers/compliance_control_set_cloning_worker_spec.rb b/spec/workers/compliance_control_set_cloning_worker_spec.rb
index dee3e6dd5..3a2332f62 100644
--- a/spec/workers/compliance_control_set_cloning_worker_spec.rb
+++ b/spec/workers/compliance_control_set_cloning_worker_spec.rb
@@ -6,9 +6,10 @@ RSpec.describe ComplianceControlSetCloningWorker do
end
it 'delegates perform to the correct lib call' do
- id = random_int
- expect_any_instance_of(ComplianceControlSetCloner).to receive(:copy).with(id)
- described_class.new.perform(id)
+ id = double('id')
+ organisation_id = double('organisation_id')
+ expect_any_instance_of(ComplianceControlSetCloner).to receive(:copy).with(id, organisation_id)
+ described_class.new.perform(id, organisation_id)
end
end