From ea7d4e0996ae9773785dc286868b30e6099f4a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Thu, 4 Oct 2018 21:05:37 +0200 Subject: [PATCH] Remove trailing whitespace --- .../site_customization/custom_pages_spec.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/spec/features/site_customization/custom_pages_spec.rb b/spec/features/site_customization/custom_pages_spec.rb index 74148b577..dad737c4d 100644 --- a/spec/features/site_customization/custom_pages_spec.rb +++ b/spec/features/site_customization/custom_pages_spec.rb @@ -107,7 +107,7 @@ feature "Custom Pages" do scenario "Listed in more information page" do custom_page = create(:site_customization_page, :published, - slug: "another-slug", + slug: "another-slug", title_en: "Another custom page", subtitle_en: "Subtitle for custom page", more_info_flag: true @@ -136,10 +136,10 @@ feature "Custom Pages" do expect(page).to have_content("Subtitle for custom page") end end - end - + end + context "Translation" do - + let(:custom_page) { create(:site_customization_page, :published, slug: "example-page", title_en: "Title in English", @@ -148,7 +148,7 @@ feature "Custom Pages" do subtitle_es: "Subtitulo en Español", content_en: "Content in English", content_es: "Contenido en Español" - ) } + ) } background do admin = create(:administrator) @@ -167,7 +167,7 @@ feature "Custom Pages" do click_button 'Update Custom page' expect(page).to have_content "Page updated successfully" - + visit @edit_page_url expect(page).to have_field('site_customization_page_title_en', with: 'Title in English') @@ -190,11 +190,11 @@ feature "Custom Pages" do visit custom_page.url select('English', from: 'locale-switcher') - + expect(page).to have_content("Title in English") select('Español', from: 'locale-switcher') - + expect(page).to have_content("Titulo correcta en Español") end