-
Notifications
You must be signed in to change notification settings - Fork 24
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
Formatter errors with undefined method 'positive?' #15
Comments
Since version 0.18.0, SimpleCov.minimum_coverage has been a Hash, allowing different values for Here's the Changelog entry related to the change: https://github.com/simplecov-ruby/simplecov/blob/main/CHANGELOG.md#0180-2020-01-28 Here's the commit: simplecov-ruby/simplecov@69dfd85#diff-8cb7f3be7080b7ff0dc99ec016e9cf6422cf2ba71e6f0f24822bec6bdb1b36fbR243 #16 Fixes this issue. |
Same here:
This is sad. b0rken for 9 months because the fix PR is unacceptable and the repo owner is too lazy to just fix the bug. Oh well, next. |
Versions Used:
simplecov-small-badge version: 0.2.4
simplecov version: 0.21.2
ruby version: 2.7.1p83
rails version: 6.0.3.4
Issue:
When running
rails test
, SimpleCovSmallBadge::Formatter throws the following errorwith unnecessary parts of the path omitted.
It appears as though at some point simplecov started using a hash for the
SimpleCov.minimum_coverage
variable and this is causing it to fail. By placing the following code into myconfig/initializers
path in the rails app so that it overwrote the problem method I was able to make the code work. It simply accesses the hash and does the rest as normalHowever this is the first time I have ever used this gem, or the simplecov gem so perhaps there is just an issue with my configuration. I would appreciate some input. If this is a proper fix just let me know and I can make a pull request for it.
The text was updated successfully, but these errors were encountered: