From c5c771f011e60ea14c48f190b051034b9ddc6849 Mon Sep 17 00:00:00 2001 From: taitus Date: Wed, 26 Feb 2020 12:14:05 +0100 Subject: [PATCH] Improve specs texts --- spec/features/remote_translations_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/features/remote_translations_spec.rb b/spec/features/remote_translations_spec.rb index 7f4e1bb92..58759584c 100644 --- a/spec/features/remote_translations_spec.rb +++ b/spec/features/remote_translations_spec.rb @@ -32,20 +32,20 @@ describe "Remote Translations" do end end - context "with locale that has :en fallback" do + context "with locale that has :es fallback" do before do allow(I18n.fallbacks).to receive(:[]).and_return([:es]) Globalize.set_fallbacks_to_all_available_locales end - scenario "with locale that has :es fallback" do + scenario "should display text in Spanish" do visit root_path(locale: :fr) expect(page).to have_css ".remote-translations-button" expect(page).to have_content "El contenido de esta página no está disponible en tu idioma" end - scenario "with locale that has :es fallback and need parse key" do + scenario "should display text in Spanish after parse key" do visit root_path(locale: :"pt-BR") expect(page).to have_css ".remote-translations-button"