diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-17 19:05:49 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-17 19:05:49 +0300 |
commit | 43a25d93ebdabea52f99b05e15b06250cd8f07d7 (patch) | |
tree | dceebdc68925362117480a5d672bcff122fb625b /spec/models/operations | |
parent | 20c84b99005abd1c82101dfeff264ac50d2df211 (diff) |
Add latest changes from gitlab-org/gitlab@16-0-stable-eev16.0.0-rc42
Diffstat (limited to 'spec/models/operations')
-rw-r--r-- | spec/models/operations/feature_flag_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/operations/feature_flag_spec.rb b/spec/models/operations/feature_flag_spec.rb index dd1ff95a16d..4a39c5dc234 100644 --- a/spec/models/operations/feature_flag_spec.rb +++ b/spec/models/operations/feature_flag_spec.rb @@ -37,8 +37,8 @@ RSpec.describe Operations::FeatureFlag do end describe '#to_reference' do - let(:namespace) { build(:namespace, path: 'sample-namespace') } - let(:project) { build(:project, name: 'sample-project', namespace: namespace) } + let(:namespace) { build(:namespace) } + let(:project) { build(:project, namespace: namespace) } let(:feature_flag) { build(:operations_feature_flag, iid: 1, project: project) } it 'returns feature flag id' do @@ -46,7 +46,7 @@ RSpec.describe Operations::FeatureFlag do end it 'returns complete path to the feature flag with full: true' do - expect(feature_flag.to_reference(full: true)).to eq '[feature_flag:sample-namespace/sample-project/1]' + expect(feature_flag.to_reference(full: true)).to eq "[feature_flag:#{project.full_path}/1]" end end |