blob: d65e654cc3cca3e1286b57a70148d00dce350427 (
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 has_one(:compliance_control_block).dependent(:destroy) } }
it { should validate_presence_of :criticity }
it { should validate_presence_of :name }
it { should validate_presence_of :code }
end
|