diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-19 12:06:00 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-19 12:06:00 +0000 |
commit | b570d73ecd31e2ca9cf8c2f1adb056edf2869477 (patch) | |
tree | 0b8aa67eab6da552d8499f1fdcf9a7495dcf1379 /spec/presenters | |
parent | 34b3567c97ecc0f317adae04e10e4d7d8c8830db (diff) | |
download | gitlab-ce-b570d73ecd31e2ca9cf8c2f1adb056edf2869477.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/presenters')
-rw-r--r-- | spec/presenters/release_presenter_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/presenters/release_presenter_spec.rb b/spec/presenters/release_presenter_spec.rb index 4d9fa7a4d75..7ab454c4ff0 100644 --- a/spec/presenters/release_presenter_spec.rb +++ b/spec/presenters/release_presenter_spec.rb @@ -97,5 +97,11 @@ describe ReleasePresenter do it { is_expected.to be_nil } end + + context 'when a user is not allowed to update a release' do + let(:presenter) { described_class.new(release, current_user: guest) } + + it { is_expected.to be_nil } + end end end |