From 73e3ea3560576349207b208d858de06369f9253a Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Thu, 29 Dec 2016 19:16:20 +0100 Subject: [PATCH] fixes specs --- app/views/admin/budgets/_form.html.erb | 2 +- config/locales/admin.en.yml | 3 ++- config/locales/admin.es.yml | 3 ++- spec/features/admin/budgets_spec.rb | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/views/admin/budgets/_form.html.erb b/app/views/admin/budgets/_form.html.erb index 615e0ae67..03507afa0 100644 --- a/app/views/admin/budgets/_form.html.erb +++ b/app/views/admin/budgets/_form.html.erb @@ -12,5 +12,5 @@ <%= f.select :currency_symbol, budget_currency_symbol_select_options %> - <%= f.submit t("shared.send"), class: "button success" %> + <%= f.submit t("admin.budgets.new.submit"), class: "button success" %> <% end %> diff --git a/config/locales/admin.en.yml b/config/locales/admin.en.yml index 51d3fa841..078cee398 100755 --- a/config/locales/admin.en.yml +++ b/config/locales/admin.en.yml @@ -61,7 +61,7 @@ en: budgets: index: title: Participatory budgets - new_link: Create new + new_link: Create new budget info_link: Info filters: open: Open @@ -74,6 +74,7 @@ en: title: Edit Participatory budget new: title: New participatory budget + submit: Create budget show: phase: Current phase currency: Currency diff --git a/config/locales/admin.es.yml b/config/locales/admin.es.yml index cef210035..c1a8b752e 100644 --- a/config/locales/admin.es.yml +++ b/config/locales/admin.es.yml @@ -61,7 +61,7 @@ es: budgets: index: title: Presupuestos participativos - new_link: Crear nuevo + new_link: Crear nuevo presupuesto info_link: Info filters: open: Abiertos @@ -74,6 +74,7 @@ es: title: Editar campaƱa de presupuestos participativos new: title: Nuevo presupuesto ciudadano + submit: Crear presupuesto show: phase: Fase actual currency: Divisa diff --git a/spec/features/admin/budgets_spec.rb b/spec/features/admin/budgets_spec.rb index 170a86cec..11cc34aa8 100644 --- a/spec/features/admin/budgets_spec.rb +++ b/spec/features/admin/budgets_spec.rb @@ -80,7 +80,7 @@ feature 'Admin budgets' do scenario 'Create budget' do visit admin_budgets_path - click_link 'Create new' + click_link 'Create new budget' fill_in 'budget_name', with: 'M30 - Summer campaign' fill_in 'budget_description', with: 'Budgeting for summer 2017 maintenance and improvements of the road M-30' @@ -97,7 +97,7 @@ feature 'Admin budgets' do click_button 'Create budget' expect(page).to_not have_content 'New participatory budget created successfully!' - expect(page).to have_css("label.error", text: "Budget's name") + expect(page).to have_css("label.error", text: "Name") end end