From f06cdc5fbbfbcb0aa1fe2d9462a0dc3727897660 Mon Sep 17 00:00:00 2001 From: decabeza Date: Tue, 14 May 2019 17:00:00 +0200 Subject: [PATCH] Change my activity menu to my content --- config/locales/en/general.yml | 4 ++-- config/locales/es/general.yml | 4 ++-- spec/features/management_spec.rb | 4 ++-- spec/features/proposal_notifications_spec.rb | 2 +- spec/features/users_auth_spec.rb | 4 ++-- spec/support/common_actions/notifications.rb | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/config/locales/en/general.yml b/config/locales/en/general.yml index 8eedc17e9..2a251a027 100644 --- a/config/locales/en/general.yml +++ b/config/locales/en/general.yml @@ -242,7 +242,7 @@ en: officing: Polling officers help: Help my_account_link: My account - my_activity_link: My activity + my_activity_link: My content open: open open_gov: Open government proposals: Proposals @@ -679,7 +679,7 @@ en: info_about_receivers_html: "This message will be sent to %{count} people and it will be visible in %{proposal_page}.
Messages are not sent immediately, users will receive periodically an email with all proposal notifications." proposal_page: "the proposal's page" show: - back: "Go back to my activity" + back: "Go back to my content" shared: edit: "Edit" save: "Save" diff --git a/config/locales/es/general.yml b/config/locales/es/general.yml index 6bf6057d1..324363081 100644 --- a/config/locales/es/general.yml +++ b/config/locales/es/general.yml @@ -242,7 +242,7 @@ es: officing: Presidentes de mesa help: Ayuda my_account_link: Mi cuenta - my_activity_link: Mi actividad + my_activity_link: Mi contenido open: abierto open_gov: Gobierno %{open} proposals: Propuestas @@ -679,7 +679,7 @@ es: info_about_receivers_html: "Este mensaje se enviará a %{count} usuarios y se publicará en %{proposal_page}.
El mensaje no se enviará inmediatamente, los usuarios recibirán periódicamente un email con todas las notificaciones de propuestas." proposal_page: "la página de la propuesta" show: - back: "Volver a mi actividad" + back: "Volver a mi contenido" shared: edit: "Editar" save: "Guardar" diff --git a/spec/features/management_spec.rb b/spec/features/management_spec.rb index 8fd95dcba..4a5fd426f 100644 --- a/spec/features/management_spec.rb +++ b/spec/features/management_spec.rb @@ -12,7 +12,7 @@ feature "Management" do click_link "Management" - expect(page).to have_content("My activity") + expect(page).to have_content("My content") expect(page).to have_content("My account") expect(page).to have_content("Sign out") end @@ -26,7 +26,7 @@ feature "Management" do click_link "Management" - expect(page).not_to have_content("My activity") + expect(page).not_to have_content("My content") expect(page).not_to have_content("My account") expect(page).not_to have_content("Sign out") end diff --git a/spec/features/proposal_notifications_spec.rb b/spec/features/proposal_notifications_spec.rb index d02895b4e..089138e21 100644 --- a/spec/features/proposal_notifications_spec.rb +++ b/spec/features/proposal_notifications_spec.rb @@ -9,7 +9,7 @@ feature "Proposal Notifications" do login_as(author) visit root_path - click_link "My activity" + click_link "My content" click_link proposal.title click_link "Access the community" click_link "Send message to the community" diff --git a/spec/features/users_auth_spec.rb b/spec/features/users_auth_spec.rb index cffd8c453..7c7a1222f 100644 --- a/spec/features/users_auth_spec.rb +++ b/spec/features/users_auth_spec.rb @@ -75,7 +75,7 @@ feature "Users" do visit account_path - expect(page).to have_link "My activity", href: user_path(u1) + expect(page).to have_link "My content", href: user_path(u1) visit "/" click_link "Sign out" @@ -98,7 +98,7 @@ feature "Users" do visit account_path - expect(page).to have_link "My activity", href: user_path(u2) + expect(page).to have_link "My content", href: user_path(u2) end end end diff --git a/spec/support/common_actions/notifications.rb b/spec/support/common_actions/notifications.rb index a68af5a56..2d10fab21 100644 --- a/spec/support/common_actions/notifications.rb +++ b/spec/support/common_actions/notifications.rb @@ -17,7 +17,7 @@ module Notifications login_as(proposal.author) visit root_path - click_link "My activity" + click_link "My content" within("#proposal_#{proposal.id}") do click_link proposal.title