diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-09 15:07:45 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-09 15:07:45 +0300 |
commit | ac1dca43baa7b3b1ac7d60d89ad60fdeefed0b80 (patch) | |
tree | 33aa23ddf7f18ddbfba3d006041c460de88583b7 /spec/lib | |
parent | f4186a753b86625a83e8499af14b5badd63a2ac2 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/git_access_snippet_spec.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/lib/gitlab/git_access_snippet_spec.rb b/spec/lib/gitlab/git_access_snippet_spec.rb index a68ac8ee8fe..ba7b7da7e7d 100644 --- a/spec/lib/gitlab/git_access_snippet_spec.rb +++ b/spec/lib/gitlab/git_access_snippet_spec.rb @@ -31,12 +31,15 @@ describe Gitlab::GitAccessSnippet do end describe 'when feature flag :version_snippets is disabled' do + let(:user) { snippet.author } + before do stub_feature_flags(version_snippets: false) end - it 'does not allow push and pull access' do - expect { pull_access_check }.to raise_project_not_found + it 'allows push and pull access' do + expect { pull_access_check }.not_to raise_error + expect { push_access_check }.not_to raise_error end end |