diff options
| author | Robert | 2017-10-10 22:31:59 +0200 |
|---|---|---|
| committer | Robert | 2017-10-12 17:49:51 +0200 |
| commit | 8963eb80e71fb1932250f123367f6830b27fb025 (patch) | |
| tree | 77d80f5d8224c45d3f599bd56ac29f6eab5c3eb4 /spec | |
| parent | 60c26e2e636ad43ab63208886fdc8c72bdca49c7 (diff) | |
| download | chouette-core-8963eb80e71fb1932250f123367f6830b27fb025.tar.bz2 | |
Refs: #4709@0.75h;
DONE:
- Copied all node atts for ComplianceChecks
- Migration of CompliancCheck#criticity int -> string
TODO:
- Check what to do with attribute ComplianceCheck#type
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/factories/compliance_checks.rb | 2 | ||||
| -rw-r--r-- | spec/lib/compliance_control_set_copier_spec.rb | 2 | ||||
| -rw-r--r-- | spec/models/compliance_check_message_spec.rb | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/spec/factories/compliance_checks.rb b/spec/factories/compliance_checks.rb index f9af62c73..b20442c80 100644 --- a/spec/factories/compliance_checks.rb +++ b/spec/factories/compliance_checks.rb @@ -2,7 +2,7 @@ FactoryGirl.define do factory :compliance_check do sequence(:name) { |n| "Compliance check #{n}" } type "Type" - criticity :info + criticity "info" code "code" origin_code "code" comment "Text" diff --git a/spec/lib/compliance_control_set_copier_spec.rb b/spec/lib/compliance_control_set_copier_spec.rb index bdf2494d0..3cecc44d1 100644 --- a/spec/lib/compliance_control_set_copier_spec.rb +++ b/spec/lib/compliance_control_set_copier_spec.rb @@ -92,7 +92,7 @@ RSpec.describe ComplianceControlSetCopier do expect( cck_block.condition_attributes ).to eq(cc_block.condition_attributes) # Control/Check - att_names = %w{ type control_attributes code criticity comment origin_code } + att_names = %w{ control_attributes code criticity comment origin_code } expected = control.attributes.values_at(*att_names) << mk_name(control.name) actual = cck.attributes.values_at(*(att_names << 'name')) diff --git a/spec/models/compliance_check_message_spec.rb b/spec/models/compliance_check_message_spec.rb index 7c8f05953..b55537f95 100644 --- a/spec/models/compliance_check_message_spec.rb +++ b/spec/models/compliance_check_message_spec.rb @@ -1,5 +1,3 @@ -require 'rails_helper' - RSpec.describe ComplianceCheckMessage, type: :model do it 'should have a valid factory' do expect(FactoryGirl.build(:compliance_check_message)).to be_valid |
