Fix the new locale test breaking other tests because of the locale user bleeding to other tests (models)

This commit is contained in:
Jyri-Petteri Paloposki 2022-08-14 10:56:20 +03:00
parent ca54386523
commit 4ab8837c2c

View file

@ -17,6 +17,9 @@ class LocaleTest < ActionDispatch::IntegrationTest
assert_response :success
assert_template "todos/index"
end
# Finally log in as normal admin user to prevent other tests from failing to the non-English locale.
logs_in_as(users(:admin_user), 'abracadabra')
end
end