aboutsummaryrefslogtreecommitdiffstats
path: root/spec/lib
diff options
context:
space:
mode:
authorZog2018-06-01 12:10:11 +0200
committerZog2018-06-01 12:10:11 +0200
commit1e6b830a083e4c30f9f65c7fa51a9f066742f66d (patch)
tree5bd2e7e6b6685246f95f8b887f451ec9d050a5c3 /spec/lib
parent12b974e13538b9f1952e4282c88d1b1a913c7f84 (diff)
downloadchouette-core-6979-ruby-controls-sets.tar.bz2
Refs #6979; Flag controls intended to be handled by the Java third-party app6979-ruby-controls-sets
And prevent calls to the java API when it is not needed
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/compliance_control_set_copier_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/lib/compliance_control_set_copier_spec.rb b/spec/lib/compliance_control_set_copier_spec.rb
index d1a56cd7f..954b1f73e 100644
--- a/spec/lib/compliance_control_set_copier_spec.rb
+++ b/spec/lib/compliance_control_set_copier_spec.rb
@@ -75,6 +75,7 @@ RSpec.describe ComplianceControlSetCopier do
let!( :control ){ create :compliance_control,
compliance_control_set: cc_set,
compliance_control_block: cc_block,
+ iev_enabled_check: false,
name: 'control' }
let( :cck_set ) { ComplianceCheckSet.last }
@@ -92,7 +93,7 @@ RSpec.describe ComplianceControlSetCopier do
expect( cck_block.condition_attributes ).to eq(cc_block.condition_attributes)
# Control/Check
- att_names = %w{ control_attributes code criticity comment origin_code }
+ att_names = %w{control_attributes code criticity comment origin_code iev_enabled_check}
expected = control.attributes.values_at(*att_names) << mk_name(control.name)
actual = cck.attributes.values_at(*(att_names << 'name'))