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

Fix tests for Ruby 2.4 support #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

meineerde
Copy link

In Ruby 2.4 and older, there is no dedicated FrozenError exception. Instead, those Rubies raised a RuntimeError when trying to modify a frozen object.

This pull requests fixes the tests on Ruby 2.4 by "mocking" the FrozenError class in the scope of the test to be the RuntimeError class.

Note: this pull request is on top of #4 (for a more linear history). If you want to only merge this one, I can gladly move the commits around.

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