diff options
| author | Vlatka Pavisic | 2017-04-25 16:00:32 +0200 |
|---|---|---|
| committer | Vlatka Pavisic | 2017-04-25 16:00:41 +0200 |
| commit | 5848e03e9655d74cdea84eb66286cf7696ee2ee4 (patch) | |
| tree | 2ad273711ec9e3447bac1e5dfc80b8143de8e20f /spec | |
| parent | 389b10c7ad29f7a7c085d3c361144450ba10fcd5 (diff) | |
| download | chouette-core-5848e03e9655d74cdea84eb66286cf7696ee2ee4.tar.bz2 | |
Refs #3033 : Redirect to 403 page if not authorised
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/controllers/errors_controller_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/controllers/errors_controller_spec.rb b/spec/controllers/errors_controller_spec.rb index 558fd0aa4..7f95d5470 100644 --- a/spec/controllers/errors_controller_spec.rb +++ b/spec/controllers/errors_controller_spec.rb @@ -15,11 +15,11 @@ RSpec.describe ErrorsController, type: :controller do end end - describe 'GET not_allowed' do - before(:each) { get 'not_allowed' } + describe 'GET forbidden' do + before(:each) { get 'forbidden' } - it 'renders the not_allowed template' do - expect(response).to render_template('not_allowed') + it 'renders the forbidden template' do + expect(response).to render_template('forbidden') end it 'returns 403 status code' do |
