From b8c2e54194d52a35b49a70d297767e7bef375b84 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 19 Jul 2017 15:58:55 +1000 Subject: [PATCH] Fix i18n key and spec --- app/views/admin/enterprise_roles/_enterprise_role.html.haml | 2 +- config/locales/en.yml | 4 ++-- spec/features/admin/orders_spec.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/admin/enterprise_roles/_enterprise_role.html.haml b/app/views/admin/enterprise_roles/_enterprise_role.html.haml index 0743e5be5a..ceae7389e3 100644 --- a/app/views/admin/enterprise_roles/_enterprise_role.html.haml +++ b/app/views/admin/enterprise_roles/_enterprise_role.html.haml @@ -1,5 +1,5 @@ %td {{ enterprise_role.user_email }} -%td= t('admin.enterprise_roles.manages') +%td= t('.manages') %td {{ enterprise_role.enterprise_name }} %td.actions %a.delete-enterprise-role.icon-trash.no-text{'ng-click' => 'delete(enterprise_role)'} diff --git a/config/locales/en.yml b/config/locales/en.yml index f0e3f05fcb..b44049552e 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -312,8 +312,6 @@ en: tax_category: Tax Category calculator: Calculator calculator_values: Calculator Values - enterprise_roles: - manages: manages enterprise_groups: index: @@ -322,6 +320,8 @@ en: enterprise_roles: form: manages: manages + enterprise_role: + manages: manages products: unit_name_placeholder: 'eg. bunches' diff --git a/spec/features/admin/orders_spec.rb b/spec/features/admin/orders_spec.rb index a21465575d..5b0a215dd8 100644 --- a/spec/features/admin/orders_spec.rb +++ b/spec/features/admin/orders_spec.rb @@ -127,7 +127,7 @@ feature %q{ page.should_not have_select2 'order_order_cycle_id' page.should have_selector 'p', text: "Distributor: #{@order.distributor.name}" - page.should have_selector 'p', text: "Order Cycle: None" + page.should have_selector 'p', text: "Order cycle: None" end scenario "filling customer details" do