blob: b00ff4c5a649666291b9c965f5ddc85894fd2194 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
 | require 'rails_helper'
RSpec.describe ComplianceControl, type: :model do
  it 'should have a valid factory' do
    expect(FactoryGirl.build(:compliance_control)).to be_valid
  end
  it { should belong_to :compliance_control_set }
  it { should belong_to :compliance_control_block }
  it { should validate_presence_of :criticity }
  it { should validate_presence_of :name }
  it { should validate_presence_of :code }
end
 |