Skip to content

Commit

Permalink
Address deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki24 committed Jan 4, 2024
1 parent 93a1e0f commit 7cec4cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ jobs:
with:
ruby-version: 3.3
bundler-cache: true
- run: bundle exec rake || echo "Rails edge test is done."
- run: bundle exec rake

ruby_edge:
needs:
Expand Down
8 changes: 6 additions & 2 deletions lib/rambulance/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ def with_exceptions_app(enabled: true)
org_show_exceptions = Rails.application.env_config['action_dispatch.show_exceptions']

Rails.application.env_config['action_dispatch.show_detailed_exceptions'] = !enabled
Rails.application.env_config['action_dispatch.show_exceptions'] = enabled

if ActionDispatch::ExceptionWrapper.instance_methods.include?(:show?)
Rails.application.env_config['action_dispatch.show_exceptions'] = enabled ? :all : :none
else
Rails.application.env_config['action_dispatch.show_exceptions'] = enabled
end

yield
ensure
Expand All @@ -37,4 +42,3 @@ def with_exceptions_app(enabled: true)
end
end
end

0 comments on commit 7cec4cb

Please sign in to comment.