Skip to content

No need to handle if FrozenError is available #34778

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

Merged
merged 1 commit into from
Dec 23, 2018

Conversation

yahonda
Copy link
Member

@yahonda yahonda commented Dec 23, 2018

Summary

Rails 6 requires Ruby 2.5, which introduces FrozenError https://docs.ruby-lang.org/en/2.5.0/NEWS.html

Related to #31520

@@ -314,7 +314,7 @@ def test_query_cache_does_not_allow_sql_key_mutation
payload[:sql].downcase!
end

assert_raises frozen_error_class do
assert_raises RuntimeError do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is not FrozenError here?

@yahonda
Copy link
Member Author

yahonda commented Dec 23, 2018

Rebased incorrectly. Let me address it.

Rails 6 requires Ruby 2.5, which introduces `FrozenError`
https://docs.ruby-lang.org/en/2.5.0/NEWS.html

Related to rails#31520
@yahonda yahonda force-pushed the ruby25_frozen_error branch from 09ea58e to 05781f1 Compare December 23, 2018 13:26
@yahonda
Copy link
Member Author

yahonda commented Dec 23, 2018

Rebased. Because of my previous incorrect rebase, these labels should be removed.

actioncable actionmailer actionpack actionview activejob activemodel

@kaspth kaspth merged commit 4eead66 into rails:master Dec 23, 2018
@kaspth
Copy link
Contributor

kaspth commented Dec 23, 2018

I dig it, thanks!

@yahonda yahonda deleted the ruby25_frozen_error branch January 15, 2019 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants