aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/compliance_check_spec.rb
blob: 4fbc23d429a2bb18cb9c734bf4c4aa95e532d676 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'rails_helper'

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 }
end