diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-12-03 14:10:13 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-12-03 14:10:13 +0300 |
commit | dd4a8df4cb5da30bf918725143f3e038a6fa7a79 (patch) | |
tree | 31631d69b0cf87d105ec4ed6b56ab9ebe370c1b0 /spec/models/resource_label_event_spec.rb | |
parent | a445aa0a9267f191fab1c46d438b42fbec549da5 (diff) |
Validate enum uniqueness
Diffstat (limited to 'spec/models/resource_label_event_spec.rb')
-rw-r--r-- | spec/models/resource_label_event_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/models/resource_label_event_spec.rb b/spec/models/resource_label_event_spec.rb index da6e1b5610d..2e718948c53 100644 --- a/spec/models/resource_label_event_spec.rb +++ b/spec/models/resource_label_event_spec.rb @@ -7,6 +7,8 @@ RSpec.describe ResourceLabelEvent, type: :model do let(:issue) { create(:issue) } let(:merge_request) { create(:merge_request) } + it_behaves_like 'Unique enum values' + describe 'associations' do it { is_expected.to belong_to(:user) } it { is_expected.to belong_to(:issue) } |