Skip to content

Commit

Permalink
Drop the model name from all localised submit tags
Browse files Browse the repository at this point in the history
  • Loading branch information
danguita committed Jan 18, 2017
1 parent 6209b1d commit 4ac49e4
Show file tree
Hide file tree
Showing 24 changed files with 35 additions and 35 deletions.
6 changes: 3 additions & 3 deletions config/locales/defaults/ca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ ca:
select:
prompt: Si us plau tria
submit:
create: Crear %{model}
submit: Guardar %{model}
update: Actualitzar %{model}
create: Crear
submit: Guardar
update: Actualitzar
number:
currency:
format:
Expand Down
6 changes: 3 additions & 3 deletions config/locales/defaults/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ en:
select:
prompt: Please select
submit:
create: Create %{model}
submit: Save %{model}
update: Update %{model}
create: Create
submit: Save
update: Update
number:
currency:
format:
Expand Down
6 changes: 3 additions & 3 deletions config/locales/defaults/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ es:
select:
prompt: Por favor seleccione
submit:
create: Crear %{model}
submit: Guardar %{model}
update: Actualizar %{model}
create: Crear
submit: Guardar
update: Actualizar
number:
currency:
format:
Expand Down
2 changes: 1 addition & 1 deletion test/integration/gobierto_admin/admin_create_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_admin_create
choose "Regular"
end

click_button "Create Admin"
click_button "Create"
end

assert has_message?("Admin was successfully created")
Expand Down
6 changes: 3 additions & 3 deletions test/integration/gobierto_admin/admin_update_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_regular_admin_update
choose "Regular"
end

click_button "Update Admin"
click_button "Update"
end

assert has_message?("Admin was successfully updated")
Expand Down Expand Up @@ -81,7 +81,7 @@ def test_manager_admin_update
choose "Manager"
end

click_button "Update Admin"
click_button "Update"
end

assert has_message?("Admin was successfully updated")
Expand Down Expand Up @@ -109,7 +109,7 @@ def test_god_admin_update
refute has_selector?(".site-check-boxes")
refute has_selector?(".admin-authorization-level-radio-buttons")

assert has_button?("Update Admin", disabled: true)
assert has_button?("Update", disabled: true)
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_consultation_create
choose "Active"
end

click_button "Create Consultation"
click_button "Create"
end

assert has_message?("Consultation was successfully created")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_consultation_item_create
# Simulate Budget line selection in user control
find("#consultation_item_budget_line_id", visible: false).set(populate_data_budget_line_summary[:name])

click_button "Create Budget line"
click_button "Create"
end

assert has_message?("Consultation item was successfully created")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_consultation_item_update
# Simulate Budget line selection in user control
find("#consultation_item_budget_line_id", visible: false).set(populate_data_budget_line_summary[:name])

click_button "Update Budget line"
click_button "Update"
end

assert has_message?("Consultation item was successfully updated")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_consultation_update
choose "Draft"
end

click_button "Update Consultation"
click_button "Update"
end

assert has_message?("Consultation was successfully updated")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_content_block_create
end
end

click_button "Create Content block"
click_button "Create"
end

assert has_message?("Content block was successfully created")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_content_block_update
end
end

click_button "Update Content block"
click_button "Update"
end

assert has_message?("Content block was successfully updated")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def test_person_create
fill_in_content_blocks

with_stubbed_s3_file_upload do
click_button "Create Person"
click_button "Create"
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def test_person_event_create
end

with_stubbed_s3_file_upload do
click_button "Create Event"
click_button "Create"
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_person_event_update
scroll_to_top

with_stubbed_s3_file_upload do
click_button "Update Event"
click_button "Update"
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_person_post_create
find("label", text: "Active").click
end

click_button "Create Post"
click_button "Create"
end

assert has_message?("Post was successfully created")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_person_post_update
find("label", text: "Draft").click
end

click_button "Update Post"
click_button "Update"
end

assert has_message?("Post was successfully updated")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_person_statement_create
fill_in_content_blocks

with_stubbed_s3_file_upload do
click_button "Create Statement"
click_button "Create"
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_person_statement_update
fill_in_content_blocks

with_stubbed_s3_file_upload do
click_button "Update Statement"
click_button "Update"
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def test_person_update
fill_in_content_blocks

with_stubbed_s3_file_upload do
click_button "Update Person"
click_button "Update"
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_political_group_create
within "form.new_political_group" do
fill_in "political_group_name", with: "Political group name"

click_button "Create Political group"
click_button "Create"
end

assert has_message?("Political group was successfully created")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_political_group_update
within "form.edit_political_group" do
fill_in "political_group_name", with: "Political group name"

click_button "Update Political group"
click_button "Update"
end

assert has_message?("Political group was successfully update")
Expand Down
2 changes: 1 addition & 1 deletion test/integration/gobierto_admin/site_create_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_site_create
end

with_stubbed_s3_file_upload do
click_button "Create Site"
click_button "Create"
end
end

Expand Down
8 changes: 4 additions & 4 deletions test/integration/gobierto_admin/site_update_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def test_site_update
end

with_stubbed_s3_file_upload do
click_button "Update Site"
click_button "Update"
end
end

Expand Down Expand Up @@ -87,7 +87,7 @@ def test_change_site_visibility_level
fill_in "site_password", with: "wadus"
end

click_button "Update Site"
click_button "Update"
end

assert has_message?("Site was successfully updated")
Expand All @@ -98,7 +98,7 @@ def test_change_site_visibility_level
end

fill_in "site_title", with: "New Site Title"
click_button "Update Site"
click_button "Update"
end

assert has_message?("Site was successfully updated")
Expand All @@ -120,7 +120,7 @@ def test_change_site_visibility_level_without_credentials
choose "Draft"
end

click_button "Update Site"
click_button "Update"
end

assert has_content?("Username can't be blank")
Expand Down
2 changes: 1 addition & 1 deletion test/integration/gobierto_admin/user_update_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def test_user_update
fill_in "user_name", with: "User Name"
fill_in "user_email", with: "[email protected]"

click_button "Update User"
click_button "Update"
end

assert has_message?("User was successfully updated")
Expand Down

0 comments on commit 4ac49e4

Please sign in to comment.