diff options
| author | Robert | 2017-10-13 10:13:28 +0200 | 
|---|---|---|
| committer | Robert | 2017-10-13 10:13:28 +0200 | 
| commit | f4cc0ece7c86f03eac3dcbbdb032b036237df314 (patch) | |
| tree | 7cb0cd4612c28aedf42a96aa5595b6406c29d9e5 | |
| parent | 5654cd12a17cf04ee3d5a7b3b22c8180605b5cd9 (diff) | |
| download | chouette-core-4709-compliance-check-criticity-as-string.tar.bz2 | |
Refs: #4709@0.2h; Fixing illegal value `info` dans ComplianceCheck.criticity4709-compliance-check-criticity-as-string
| -rw-r--r-- | app/models/compliance_check.rb | 2 | ||||
| -rw-r--r-- | spec/factories/compliance_checks.rb | 2 | 
2 files changed, 2 insertions, 2 deletions
| diff --git a/app/models/compliance_check.rb b/app/models/compliance_check.rb index 54ca4e7a0..55f2ae228 100644 --- a/app/models/compliance_check.rb +++ b/app/models/compliance_check.rb @@ -6,7 +6,7 @@ class ComplianceCheck < ActiveRecord::Base    belongs_to :compliance_check_set    belongs_to :compliance_check_block -  enumerize :criticity, in: %i(info warning error), scope: true, default: :warning +  enumerize :criticity, in: %i(warning error), scope: true, default: :warning    validates :criticity, presence: true    validates :name, presence: true    validates :code, presence: true diff --git a/spec/factories/compliance_checks.rb b/spec/factories/compliance_checks.rb index b20442c80..526052329 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 "warning"      code "code"      origin_code "code"      comment "Text" | 
