From ab2e17c61cfe53fb79a27614b4f4a02dc4fd57f4 Mon Sep 17 00:00:00 2001 From: Eduardo Martinez Echevarria Date: Fri, 19 Jul 2024 14:06:32 +0200 Subject: [PATCH 1/2] Disable cache classes in test environment --- config/environments/test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/test.rb b/config/environments/test.rb index 7ab8975..4e37609 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -5,7 +5,7 @@ # test suite. You never need to work with it otherwise. Remember that # 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.cache_classes = false # 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 From e3974c34ae504b34bef264ececee8968b18b8b69 Mon Sep 17 00:00:00 2001 From: Eduardo Martinez Echevarria Date: Fri, 19 Jul 2024 14:06:49 +0200 Subject: [PATCH 2/2] Update tests --- spec/system/authorizations_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/system/authorizations_spec.rb b/spec/system/authorizations_spec.rb index 13bfed2..0febf4d 100644 --- a/spec/system/authorizations_spec.rb +++ b/spec/system/authorizations_spec.rb @@ -50,7 +50,7 @@ def fill_in_authorization_form fill_in_authorization_form click_button "Enviar" - expect(page).to have_content("Has estat autoritzada amb correctament") + expect(page).to have_content("Se t'ha autoritzat correctament") visit decidim_verifications.authorizations_path @@ -72,7 +72,7 @@ def fill_in_authorization_form within ".authorizations-list" do expect(page).to have_content("El padrĂ³") - expect(page).to have_content(I18n.localize(authorization.granted_at, format: :long, locale: :ca)) + expect(page).to have_content(I18n.localize(authorization.granted_at, format: :long_with_particles, locale: :ca)) end end end