From 232e6c7f117d8435c494c3976b243aa9b7cf1bd6 Mon Sep 17 00:00:00 2001 From: Pierre Mesure Date: Sat, 9 Nov 2019 13:39:57 +0100 Subject: [PATCH] Replace old Spanish text with org name --- app/views/layouts/devise.html.erb | 2 +- app/views/users/registrations/success.html.erb | 1 + spec/features/registration_form_spec.rb | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/devise.html.erb b/app/views/layouts/devise.html.erb index 55916e678..edc987132 100644 --- a/app/views/layouts/devise.html.erb +++ b/app/views/layouts/devise.html.erb @@ -1,7 +1,7 @@ - <%= render "layouts/common_head", default_title: "Gobierno abierto" %> + <%= render "layouts/common_head", default_title: setting["org_name"] %> <%= render "layouts/meta_tags" %> <%= raw setting["html.per_page_code_head"] %> diff --git a/app/views/users/registrations/success.html.erb b/app/views/users/registrations/success.html.erb index d733ad0c0..b1e280398 100644 --- a/app/views/users/registrations/success.html.erb +++ b/app/views/users/registrations/success.html.erb @@ -1,3 +1,4 @@ +<% provide(:title) { t("devise_views.users.registrations.success.title") } %>

<%= t("devise_views.users.registrations.success.title") %>

<%= sanitize(t("devise_views.users.registrations.success.thank_you")) %>

<%= sanitize(t("devise_views.users.registrations.success.instructions_1")) %>

diff --git a/spec/features/registration_form_spec.rb b/spec/features/registration_form_spec.rb index 22cbefaf8..32ff9f824 100644 --- a/spec/features/registration_form_spec.rb +++ b/spec/features/registration_form_spec.rb @@ -35,6 +35,7 @@ describe "Registration form" do click_button "Register" + expect(page).to have_title "Confirm your email address" expect(page).to have_content "Thank you for registering" new_user = User.last