Skip to content

Commit

Permalink
Merge branch 'upgrade_decidim_028' into staging
Browse files Browse the repository at this point in the history
* upgrade_decidim_028:
  Update tests
  Disable cache classes in test environment
  • Loading branch information
entantoencuanto committed Jul 19, 2024
2 parents 0aadf7e + e3974c3 commit 7208e6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions spec/system/authorizations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 7208e6a

Please sign in to comment.