Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-12-03 14:10:13 +0300
committerShinya Maeda <shinya@gitlab.com>2018-12-03 14:10:13 +0300
commitdd4a8df4cb5da30bf918725143f3e038a6fa7a79 (patch)
tree31631d69b0cf87d105ec4ed6b56ab9ebe370c1b0 /spec/models/user_callout_spec.rb
parenta445aa0a9267f191fab1c46d438b42fbec549da5 (diff)
Validate enum uniqueness
Diffstat (limited to 'spec/models/user_callout_spec.rb')
-rw-r--r--spec/models/user_callout_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/models/user_callout_spec.rb b/spec/models/user_callout_spec.rb
index 64ba17c81fe..d845fdf33a5 100644
--- a/spec/models/user_callout_spec.rb
+++ b/spec/models/user_callout_spec.rb
@@ -3,6 +3,8 @@ require 'rails_helper'
describe UserCallout do
let!(:callout) { create(:user_callout) }
+ it_behaves_like 'Unique enum values'
+
describe 'relationships' do
it { is_expected.to belong_to(:user) }
end