diff options
| author | Teddy Wing | 2017-11-02 16:41:38 +0100 |
|---|---|---|
| committer | Teddy Wing | 2017-11-02 16:41:38 +0100 |
| commit | 213c2ac6702718486f10b999948a8e5e3190c749 (patch) | |
| tree | 853246333bd04a27d2ddb2b6d433da4f6a45d9ac | |
| parent | 1299a941e45be30d75709db096a7bc233b64eb95 (diff) | |
| download | chouette-core-213c2ac6702718486f10b999948a8e5e3190c749.tar.bz2 | |
ComplianceControlSetCopier spec: Test that `#copy` returns CCkSet
The `ComplianceControlSetCopyWorker` depends on
`ComplianceControlSetCopier#copy` to return the `ComplianceCheckSet`
that it creates.
Refs #4782
| -rw-r--r-- | spec/lib/compliance_control_set_copier_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/lib/compliance_control_set_copier_spec.rb b/spec/lib/compliance_control_set_copier_spec.rb index a9e576cf7..0f15d86d0 100644 --- a/spec/lib/compliance_control_set_copier_spec.rb +++ b/spec/lib/compliance_control_set_copier_spec.rb @@ -99,6 +99,10 @@ RSpec.describe ComplianceControlSetCopier do expect( actual ).to eq( expected ) end + + it 'returns the newly-created ComplianceCheckSet' do + expect(subject.copy(cc_set.id, ref.id)).to eq(cck_set) + end end end |
