Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start Testing Against Rails 7.0 #1581

Merged
merged 3 commits into from
Sep 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/sentry_rails_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
include:
- { os: ubuntu-latest, ruby_version: '3.0', rails_version: 6.1.0, options: { rubyopt: "--enable-frozen-string-literal --debug=frozen-string-literal" } }
- { os: ubuntu-latest, ruby_version: '2.7', rails_version: 6.1.0, options: { codecov: 1 } }
- { os: ubuntu-latest, ruby_version: '2.7', rails_version: 7.0.0.alpha }
exclude:
- ruby_version: 2.4
rails_version: 6.0.0
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Unreleased

### Miscellaneous

- Start Testing Against Rails 7.0 [#1581](https://github.com/getsentry/sentry-ruby/pull/1581)

## 4.7.3

- Avoid leaking tracing timestamp to breadcrumbs [#1575](https://github.com/getsentry/sentry-ruby/pull/1575)
Expand Down
5 changes: 5 additions & 0 deletions sentry-rails/spec/support/test_rails_app/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ def not_found
end

def make_basic_app
# Rails removes the support of multiple instances, which includes freezing some setting values.
# This is the workaround to avoid FrozenError. Related issue: https://github.com/rails/rails/issues/42319
ActiveSupport::Dependencies.autoload_once_paths = []
ActiveSupport::Dependencies.autoload_paths = []

app = Class.new(TestApp) do
def self.name
"RailsTestApp"
Expand Down