aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/routes_controller_spec.rb
diff options
context:
space:
mode:
authorcedricnjanga2017-11-09 12:15:55 +0100
committercedricnjanga2017-11-09 12:27:09 +0100
commit3ae18486a563e634ef555372131abaf84ae1a892 (patch)
tree7c8c73e83d84fe813edc34c8c187d7eef26231df /spec/controllers/routes_controller_spec.rb
parent464a5c70450e4054c12f4d5b58477bb9386917f2 (diff)
downloadchouette-core-3ae18486a563e634ef555372131abaf84ae1a892.tar.bz2
Refs #4932 Change route duplication to redrect to routes#index
Diffstat (limited to 'spec/controllers/routes_controller_spec.rb')
-rw-r--r--spec/controllers/routes_controller_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/routes_controller_spec.rb b/spec/controllers/routes_controller_spec.rb
index 336f20945..fb29c8d73 100644
--- a/spec/controllers/routes_controller_spec.rb
+++ b/spec/controllers/routes_controller_spec.rb
@@ -89,7 +89,7 @@ RSpec.describe RoutesController, type: :controller do
id: route.id
end.to change { Route.count }.by(1)
- expect(Route.last.name).to eq(route.name)
+ expect(Route.last.name).to eq( I18n.t('activerecord.copy', name: route.name))
expect(Route.last.published_name).to eq(route.published_name)
end
end