fixes specs

This commit is contained in:
Alberto Garcia Cabeza
2016-12-29 19:16:20 +01:00
parent 84e44dc529
commit 73e3ea3560
4 changed files with 7 additions and 5 deletions

View File

@@ -12,5 +12,5 @@
<%= f.select :currency_symbol, budget_currency_symbol_select_options %>
</div>
</div>
<%= f.submit t("shared.send"), class: "button success" %>
<%= f.submit t("admin.budgets.new.submit"), class: "button success" %>
<% end %>

View File

@@ -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

View File

@@ -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

View File

@@ -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