From e4af0ad5497246dbf35c16a73b34640ee537621b Mon Sep 17 00:00:00 2001 From: Mahmoud Harmouch Date: Wed, 27 Apr 2022 17:24:57 +0300 Subject: [PATCH] Fixed a grammatical error. (#17413) * Fixed a grammatical error. Signed-off-by: Harmouch101 * Updated a test case. Signed-off-by: Harmouch101 --- config/locales/views/stories/en.yml | 2 +- config/locales/views/stories/fr.yml | 2 +- spec/requests/stories/tagged_articles_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/locales/views/stories/en.yml b/config/locales/views/stories/en.yml index 8e2cbe62d..b0cd4e4e7 100644 --- a/config/locales/views/stories/en.yml +++ b/config/locales/views/stories/en.yml @@ -21,5 +21,5 @@ en: year: Year infinity: Infinity latest: Latest - signin_html: "👋 Sign in for the ability sort posts by top and latest." + signin_html: "👋 Sign in for the ability to sort posts by relevant, latest, or top." top: Top diff --git a/config/locales/views/stories/fr.yml b/config/locales/views/stories/fr.yml index b4c439951..02a73882e 100644 --- a/config/locales/views/stories/fr.yml +++ b/config/locales/views/stories/fr.yml @@ -21,5 +21,5 @@ fr: year: Année infinity: Infini latest: Récent - signin_html: "👋 Sign in for the ability sort posts by top and latest." + signin_html: "👋 Sign in for the ability to sort posts by relevant, latest, or top." top: Top diff --git a/spec/requests/stories/tagged_articles_spec.rb b/spec/requests/stories/tagged_articles_spec.rb index 29f512c47..94f183531 100644 --- a/spec/requests/stories/tagged_articles_spec.rb +++ b/spec/requests/stories/tagged_articles_spec.rb @@ -201,7 +201,7 @@ RSpec.describe "Stories::TaggedArticlesIndex", type: :request do def shows_sign_in_notice expect(response.body).not_to include("crayons-navigation__item crayons-navigation__item--current") - expect(response.body).to include("for the ability sort posts by") + expect(response.body).to include("for the ability to sort posts by") end def does_not_include_current_page_link(tag)