From 0a060dbb53de67052fc57cecda3c585343fa1bd3 Mon Sep 17 00:00:00 2001 From: benjaminhenkel Date: Thu, 13 Jul 2017 10:16:55 +0200 Subject: [PATCH] Wording spelling mistake --- app/controllers/admin/procedures_controller.rb | 6 +++--- app/controllers/admin_controller.rb | 2 +- spec/controllers/admin/procedures_controller_spec.rb | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/controllers/admin/procedures_controller.rb b/app/controllers/admin/procedures_controller.rb index b4b8a39a3..ccb4714c5 100644 --- a/app/controllers/admin/procedures_controller.rb +++ b/app/controllers/admin/procedures_controller.rb @@ -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 diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index 48598e2c4..d0b05532f 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb @@ -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 diff --git a/spec/controllers/admin/procedures_controller_spec.rb b/spec/controllers/admin/procedures_controller_spec.rb index d612f02e8..50c37194a 100644 --- a/spec/controllers/admin/procedures_controller_spec.rb +++ b/spec/controllers/admin/procedures_controller_spec.rb @@ -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