aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/compliance_check_spec.rb
blob: 710cd4b4fe20beb30ff4888608d65ca362690957 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
RSpec.describe ComplianceCheck, type: :model do
  it 'should have a valid factory' do
    expect(FactoryGirl.build(:compliance_check)).to be_valid
  end

  it { should belong_to :compliance_check_set }
  it { should belong_to :compliance_check_block }

  it { should validate_presence_of :criticity }
  it { should validate_presence_of :name }
  it { should validate_presence_of :code }
  it { should validate_presence_of :origin_code }
end