diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-12-03 20:10:13 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-12-03 20:10:13 +0900 |
commit | dd4a8df4cb5da30bf918725143f3e038a6fa7a79 (patch) | |
tree | 31631d69b0cf87d105ec4ed6b56ab9ebe370c1b0 /spec/models/push_event_payload_spec.rb | |
parent | a445aa0a9267f191fab1c46d438b42fbec549da5 (diff) | |
download | gitlab-ce-dd4a8df4cb5da30bf918725143f3e038a6fa7a79.tar.gz |
Validate enum uniqueness
Diffstat (limited to 'spec/models/push_event_payload_spec.rb')
-rw-r--r-- | spec/models/push_event_payload_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/models/push_event_payload_spec.rb b/spec/models/push_event_payload_spec.rb index a049ad35584..ec559517549 100644 --- a/spec/models/push_event_payload_spec.rb +++ b/spec/models/push_event_payload_spec.rb @@ -1,6 +1,8 @@ require 'spec_helper' describe PushEventPayload do + it_behaves_like 'Unique enum values' + describe 'saving payloads' do it 'does not allow commit messages longer than 70 characters' do event = create(:push_event) |