diff options
| author | Xinhui | 2017-09-05 15:20:12 +0200 |
|---|---|---|
| committer | Xinhui | 2017-09-05 15:20:12 +0200 |
| commit | 92703917b31cbaf7f4e5e1bafd009eee2d26c6a1 (patch) | |
| tree | d4b42934b90ab6d6ad3467082d405d79a2319e99 /spec | |
| parent | 37947deb6082d12ecfbce3bd7cbf18bc98762d41 (diff) | |
| download | chouette-core-92703917b31cbaf7f4e5e1bafd009eee2d26c6a1.tar.bz2 | |
Model ComplianceCheckSet
Refs #4386
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/factories/compliance_check_sets.rb | 8 | ||||
| -rw-r--r-- | spec/models/compliance_check_set_spec.rb | 12 |
2 files changed, 20 insertions, 0 deletions
diff --git a/spec/factories/compliance_check_sets.rb b/spec/factories/compliance_check_sets.rb new file mode 100644 index 000000000..d16f19845 --- /dev/null +++ b/spec/factories/compliance_check_sets.rb @@ -0,0 +1,8 @@ +FactoryGirl.define do + factory :compliance_check_set do + status :new + referential + compliance_control_set + workbench + end +end diff --git a/spec/models/compliance_check_set_spec.rb b/spec/models/compliance_check_set_spec.rb new file mode 100644 index 000000000..6e53c9def --- /dev/null +++ b/spec/models/compliance_check_set_spec.rb @@ -0,0 +1,12 @@ +require 'rails_helper' + +RSpec.describe ComplianceCheckSet, type: :model do + it 'should have a valid factory' do + expect(FactoryGirl.build(:compliance_check_set)).to be_valid + end + + it { should belong_to :referential } + it { should belong_to :workbench } + it { should belong_to :compliance_control_set } + it { should belong_to :parent } +end |
