attempts to fix travis again

This commit is contained in:
kikito
2017-01-05 12:32:36 +01:00
parent 2a792a5499
commit 5eec8c7da2
4 changed files with 10 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
<h3 class="inline-block"><%= t('admin.budgets.show.groups') %></h3> <h3 class="inline-block"><%= t('admin.budgets.show.groups', count: groups.count) %></h3>
<% if groups.blank? %> <% if groups.blank? %>
<div class="callout primary"> <div class="callout primary">
<%= t("admin.budgets.form.no_groups") %> <%= t("admin.budgets.form.no_groups") %>

View File

@@ -82,7 +82,9 @@ en:
new: new:
title: New participatory budget title: New participatory budget
show: show:
groups: Groups of budget headings groups:
one: 1 Group of budget headings
other: "%{count} Groups of budget headings"
form: form:
group: Group name group: Group name
no_groups: No groups created yet. Each user will be able to vote in only one heading per group. no_groups: No groups created yet. Each user will be able to vote in only one heading per group.

View File

@@ -82,7 +82,9 @@ es:
new: new:
title: Nuevo presupuesto ciudadano title: Nuevo presupuesto ciudadano
show: show:
groups: Grupos de partidas presupuestarias groups:
one: 1 Grupo de partidas presupuestarias
other: "%{count} Grupos de partidas presupuestarias"
form: form:
group: Nombre del grupo group: Nombre del grupo
no_groups: No hay grupos creados todavía. Cada usuario podrá votar en una sola partida de cada grupo. no_groups: No hay grupos creados todavía. Cada usuario podrá votar en una sola partida de cada grupo.

View File

@@ -113,6 +113,7 @@ feature 'Admin budgets' do
click_link 'Edit headings groups' click_link 'Edit headings groups'
end end
expect(page).to have_content '0 Groups of budget headings'
expect(page).to have_content 'No groups created yet.' expect(page).to have_content 'No groups created yet.'
click_link 'Add new group' click_link 'Add new group'
@@ -120,6 +121,7 @@ feature 'Admin budgets' do
fill_in 'budget_group_name', with: 'Health' fill_in 'budget_group_name', with: 'Health'
click_button 'Create group' click_button 'Create group'
expect(page).to have_content '1 Group of budget headings'
expect(page).to have_content 'Health' expect(page).to have_content 'Health'
expect(page).to have_content 'Yearly participatory budget' expect(page).to have_content 'Yearly participatory budget'
expect(page).to_not have_content 'No groups created yet.' expect(page).to_not have_content 'No groups created yet.'
@@ -127,6 +129,7 @@ feature 'Admin budgets' do
visit admin_budgets_path visit admin_budgets_path
click_link 'Edit budget' click_link 'Edit budget'
expect(page).to have_content '1 Group of budget headings'
expect(page).to have_content 'Health' expect(page).to have_content 'Health'
expect(page).to have_content 'Yearly participatory budget' expect(page).to have_content 'Yearly participatory budget'
expect(page).to_not have_content 'No groups created yet.' expect(page).to_not have_content 'No groups created yet.'