diff --git a/config/application.rb b/config/application.rb index 073ba55b..135ca1f2 100644 --- a/config/application.rb +++ b/config/application.rb @@ -13,7 +13,7 @@ module Mbis class Application < Rails::Application # Initialize configuration defaults for originally generated Rails version. - config.load_defaults 6.1 + config.load_defaults 7.0 # Configuration for the application, engines, and railties goes here. # @@ -70,5 +70,18 @@ class Application < Rails::Application # TODO: Old Rails 6.0 default; disable this ActiveSupport.utc_to_local_returns_utc_offset_times = false + + # TODO: Old Rails 6.1 default; disable this + # Fails rails test test/models/concerns/workflow/model_test.rb:180 + config.active_support.executor_around_test_case = false + + # TODO: Old Rails 6.1 default; disable this + # Fixtures are incomplete, e.g. test/fixtures/memberships.yml needs to be defined + config.active_record.verify_foreign_keys_for_fixtures = false + + # Old Rails 6.1 default, required by devise_saml_authenticatable version 1.9.1 + # cf. https://github.com/apokalipto/devise_saml_authenticatable/issues/237 + # If we don't have this, the redirect when logging out from ADFS throws an application error. + Rails.application.config.action_controller.raise_on_open_redirects = false end end diff --git a/config/initializers/new_framework_defaults_7_0.rb b/config/initializers/new_framework_defaults_7_0.rb deleted file mode 100644 index 099df580..00000000 --- a/config/initializers/new_framework_defaults_7_0.rb +++ /dev/null @@ -1,145 +0,0 @@ -# rubocop:disable Layout/LineLength, Layout/EmptyLines -# Be sure to restart your server when you modify this file. -# -# This file eases your Rails 7.0 framework defaults upgrade. -# -# Uncomment each configuration one by one to switch to the new default. -# Once your application is ready to run with all new defaults, you can remove -# this file and set the `config.load_defaults` to `7.0`. -# -# Read the Guide for Upgrading Ruby on Rails for more info on each option. -# https://guides.rubyonrails.org/upgrading_ruby_on_rails.html - -# `button_to` view helper will render `