diff --git a/config/environments/test.rb b/config/environments/test.rb index 5dfdff1c1..4d71b094d 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -6,6 +6,8 @@ # your test database is "scratch space" for the test suite and is wiped # and recreated between test runs. Don't rely on the data there! config.cache_classes = true + config.i18n.default_locale = :en + # Do not eager load code on boot. This avoids loading your whole application # just for the purpose of running a single test. If you are using a tool that diff --git a/spec/support/features/session_helpers.rb b/spec/support/features/session_helpers.rb index d9a686c19..58c65b364 100644 --- a/spec/support/features/session_helpers.rb +++ b/spec/support/features/session_helpers.rb @@ -4,7 +4,7 @@ def sign_in_with(email, password) visit '/login' fill_in 'user_email', with: email fill_in 'user_password', with: password - click_button I18n.t('application.login_form.button') + click_button end end end