Wording spelling mistake
This commit is contained in:
parent
ce4bdb4812
commit
0a060dbb53
3 changed files with 7 additions and 7 deletions
|
@ -124,7 +124,7 @@ class Admin::ProceduresController < AdminController
|
|||
render js: "window.location = '#{admin_procedures_path}'"
|
||||
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
flash.alert = 'Procédure inéxistante'
|
||||
flash.alert = 'Procédure inexistante'
|
||||
redirect_to admin_procedures_path
|
||||
end
|
||||
|
||||
|
@ -154,7 +154,7 @@ class Admin::ProceduresController < AdminController
|
|||
redirect_to admin_procedures_path
|
||||
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
flash.alert = 'Procédure inéxistante'
|
||||
flash.alert = 'Procédure inexistante'
|
||||
redirect_to admin_procedures_path
|
||||
end
|
||||
|
||||
|
@ -171,7 +171,7 @@ class Admin::ProceduresController < AdminController
|
|||
end
|
||||
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
flash.alert = 'Procédure inéxistante'
|
||||
flash.alert = 'Procédure inexistante'
|
||||
redirect_to admin_procedures_path
|
||||
end
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ class AdminController < ApplicationController
|
|||
@procedure = current_administrateur.procedures.find(id)
|
||||
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
flash.alert = 'Procédure inéxistante'
|
||||
flash.alert = 'Procédure inexistante'
|
||||
redirect_to admin_procedures_path, status: 404
|
||||
end
|
||||
|
||||
|
|
|
@ -362,7 +362,7 @@ describe Admin::ProceduresController, type: :controller do
|
|||
|
||||
it 'fails' do
|
||||
expect(response).to redirect_to :admin_procedures
|
||||
expect(flash[:alert]).to have_content 'Procédure inéxistante'
|
||||
expect(flash[:alert]).to have_content 'Procédure inexistante'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -406,7 +406,7 @@ describe Admin::ProceduresController, type: :controller do
|
|||
end
|
||||
|
||||
it { expect(response).to redirect_to :admin_procedures }
|
||||
it { expect(flash[:alert]).to have_content 'Procédure inéxistante' }
|
||||
it { expect(flash[:alert]).to have_content 'Procédure inexistante' }
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -437,7 +437,7 @@ describe Admin::ProceduresController, type: :controller do
|
|||
end
|
||||
|
||||
it { expect(response).to redirect_to :admin_procedures }
|
||||
it { expect(flash[:alert]).to have_content 'Procédure inéxistante' }
|
||||
it { expect(flash[:alert]).to have_content 'Procédure inexistante' }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue