diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-10-06 02:19:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-06 02:19:45 +0200 |
commit | 58d5b28cb00ffadfeb7a3e1e03f7ae0d3b0d8486 (patch) | |
tree | 25249ee5319fb69d5ba26c5d7c6c79856c4be1a0 /spec/requests | |
parent | 5fd46dddd7b1d5482c3173c8bcfba0899293307f (diff) |
Remove previous landing page (#19300)
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/localization_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/requests/localization_spec.rb b/spec/requests/localization_spec.rb index 175f02ae9..0bc2786ac 100644 --- a/spec/requests/localization_spec.rb +++ b/spec/requests/localization_spec.rb @@ -10,30 +10,30 @@ describe 'Localization' do it 'uses a specific region when provided' do headers = { 'Accept-Language' => 'zh-HK' } - get "/about", headers: headers + get "/auth/sign_in", headers: headers expect(response.body).to include( - I18n.t('about.tagline', locale: 'zh-HK') + I18n.t('auth.login', locale: 'zh-HK') ) end it 'falls back to a locale when region missing' do headers = { 'Accept-Language' => 'es-FAKE' } - get "/about", headers: headers + get "/auth/sign_in", headers: headers expect(response.body).to include( - I18n.t('about.tagline', locale: 'es') + I18n.t('auth.login', locale: 'es') ) end it 'falls back to english when locale is missing' do headers = { 'Accept-Language' => '12-FAKE' } - get "/about", headers: headers + get "/auth/sign_in", headers: headers expect(response.body).to include( - I18n.t('about.tagline', locale: 'en') + I18n.t('auth.login', locale: 'en') ) end end |