-
Notifications
You must be signed in to change notification settings - Fork 75
Fix tests #1068
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
Conversation
Gemfile
Outdated
| if RUBY_VERSION >= '3.2' | ||
| gem 'minitest-mock' # minitest-mock was removed from minitest 6.0 which is Ruby 3.2+ | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is ugly and I think it's easier to pin minitest to ~> 5.0 for now
ekohl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 for pinning to minitest 5 for now.
|
|
||
| it 'has no config file' do | ||
| _(subject.config_file).must_equal(nil) | ||
| _(subject.config_file).must_be_nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been leaning to using the assert_* statements more because IMHO they're easier to read. So instead go with:
| _(subject.config_file).must_be_nil | |
| assert_nil subject.config_file |
But that's rather inconsistent with the rest of the file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's why I didn't change it like this :)
- 6.x splits out Minitest::Mock into an own gem: minitest-mock - 6.x requires Ruby 3.2 - minitest-mock requires Ruby 3.1 As we need to keep Ruby 3.0 compatibility, we can't depend on minitest-mock unconditionally. Let's keep us on minitest 5.x for now
|
Technically we can skip changing the |
No description provided.