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

Patch Rails 4.2 tests to work with Ruby 2.6. #1320

Merged
merged 1 commit into from
Apr 19, 2019

Conversation

nickcharlton
Copy link
Member

An issue with reusing the TestResponse object occurs with Ruby 2.6 and
causes already initialized exceptions to be thrown.

This monkey-patch fixes this for Rails 4.2.

It's expected that Rails 4.2 will be dropped by administrate when Rails
6 is released, and this patch should be removed.

rails/rails#34790

An issue with reusing the `TestResponse` object occurs with Ruby 2.6 and
causes `already initialized` exceptions to be thrown.

This monkey-patch fixes this for Rails 4.2.

It's expected that Rails 4.2 will be dropped by administrate when Rails
6 is released, and this patch should be removed.

rails/rails#34790
@nickcharlton nickcharlton merged commit d25be18 into master Apr 19, 2019
@nickcharlton nickcharlton deleted the nc-patch-rails42-ruby26 branch April 19, 2019 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant