Revu de code OK
This commit is contained in:
parent
c454ea28ed
commit
8db705ec94
9 changed files with 79 additions and 87 deletions
|
@ -8,10 +8,7 @@ RSpec.shared_examples 'not owner of dossier' do |controller, redirect|
|
|||
end
|
||||
|
||||
it 'redirect to home page' do
|
||||
redirect_page = '/'
|
||||
redirect_page = redirect unless redirect.nil?
|
||||
|
||||
expect(response).to redirect_to(redirect_page)
|
||||
expect(response).to redirect_to(redirect || '/')
|
||||
end
|
||||
|
||||
it 'show a flash message error' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue