diff options
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 |