diff options
| author | Teddy Wing | 2017-10-30 17:42:40 +0100 | 
|---|---|---|
| committer | Teddy Wing | 2017-10-30 17:48:58 +0100 | 
| commit | f7d48398f5cb2ad714691bd630619b02c8958ac5 (patch) | |
| tree | 2091fbe3afe406ab0139f909574075a3fcc1c91d /spec/workers | |
| parent | 17dcf8fe67972f6287fdac40a4477ef8b63ae1b9 (diff) | |
| download | chouette-core-f7d48398f5cb2ad714691bd630619b02c8958ac5.tar.bz2 | |
ComplianceControlSetCopyWorker: Pass ComplianceCheckSet ID to Java
Previously I had been passing the `ComplianceControlSet` ID to the Java
API. The API actually expects the ID of the `ComplianceCheckSet`.
In order to get this ID, have the `ComplianceControlSetCopier` return
the `ComplianceCheckSet` that it creates, and use that to pass the the
ID to the Java API.
Refs #4782
Diffstat (limited to 'spec/workers')
| -rw-r--r-- | spec/workers/compliance_control_set_copy_worker_spec.rb | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/spec/workers/compliance_control_set_copy_worker_spec.rb b/spec/workers/compliance_control_set_copy_worker_spec.rb index fcd1918c7..72a030292 100644 --- a/spec/workers/compliance_control_set_copy_worker_spec.rb +++ b/spec/workers/compliance_control_set_copy_worker_spec.rb @@ -19,6 +19,7 @@ RSpec.describe ComplianceControlSetCopyWorker do        :get,        "#{Rails.configuration.iev_url}/boiv_iev/referentials/validator/new?id=#{control_set_id}"      ) +    allow_any_instance_of(ComplianceControlSetCopier).to receive(:copy).and_return(check_set)      ComplianceControlSetCopyWorker.new.perform(control_set_id, referential_id) | 
