blob: a66e7f0302297754cadd11a744a71a0c474b695d (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
 | require 'rails_helper'
RSpec.describe ComplianceControlSet, type: :model do
  it 'should have a valid factory' do
    expect(FactoryGirl.build(:compliance_control_set)).to be_valid
  end
  it { should belong_to :organisation }
  it { should have_many(:compliance_controls).dependent(:destroy) }
  it { should have_many(:compliance_control_blocks).dependent(:destroy) }
  it { should validate_presence_of :name }
  
end
 |