diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-08 21:15:10 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-08 21:15:10 +0000 |
commit | 7db94a9807df03ce7a4f210b513816a47f34e15b (patch) | |
tree | a20574d4297ba13e3340bfae217e3035e77d6423 /spec/models | |
parent | 3a563d7c1e15023f205d2a357e5d8a38a3b53ecc (diff) | |
download | gitlab-ce-7db94a9807df03ce7a4f210b513816a47f34e15b.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/user_preference_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/user_preference_spec.rb b/spec/models/user_preference_spec.rb index 2eb20912772..e085ff934b2 100644 --- a/spec/models/user_preference_spec.rb +++ b/spec/models/user_preference_spec.rb @@ -63,6 +63,12 @@ RSpec.describe UserPreference, feature_category: :user_profile do end describe 'visibility_pipeline_id_type' do + it 'is set to 0 by default' do + pref = described_class.new + + expect(pref.visibility_pipeline_id_type).to eq('id') + end + it { is_expected.to define_enum_for(:visibility_pipeline_id_type).with_values(id: 0, iid: 1) } end end |