diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-06-13 16:05:55 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-06-13 17:03:48 +0200 |
commit | 7fe92d998125d3dc8be3544346de8dbd5c64b240 (patch) | |
tree | 297884d64e1e4f44c4ab07f69f6497c29ddd5c7d /spec/views | |
parent | 96482886f3536a31977c7fabb1071a59ad6e44f5 (diff) | |
download | gitlab-ce-7fe92d998125d3dc8be3544346de8dbd5c64b240.tar.gz |
Render access denied without message
The `errors/access_denied` page should not fail to render when no
message is provided.
When accessing something as a sessionless user, we should also display
the terms message if possible.
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/errors/access_denied.html.haml_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/views/errors/access_denied.html.haml_spec.rb b/spec/views/errors/access_denied.html.haml_spec.rb new file mode 100644 index 00000000000..bde2f6f0169 --- /dev/null +++ b/spec/views/errors/access_denied.html.haml_spec.rb @@ -0,0 +1,7 @@ +require 'spec_helper' + +describe 'errors/access_denied' do + it 'does not fail to render when there is no message provided' do + expect { render }.not_to raise_error + end +end |