diff options
Diffstat (limited to 'spec/models/label_spec.rb')
-rw-r--r-- | spec/models/label_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/models/label_spec.rb b/spec/models/label_spec.rb index bdd75cc760e..a8bd01e1a73 100644 --- a/spec/models/label_spec.rb +++ b/spec/models/label_spec.rb @@ -18,7 +18,8 @@ describe Label, models: true do end describe 'validation' do - it { is_expected.to validate_presence_of(:subject) } + it { is_expected.to validate_presence_of(:subject_id) } + it { is_expected.to validate_presence_of(:subject_type) } it 'validates color code' do expect(label).not_to allow_value('G-ITLAB').for(:color) |