-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Style/MixinGrouping registers offense for rspec's include-expectation #4172
Labels
Comments
Another false positive: config.include Mongoid::Matchers, type: :model |
sinsoku
added a commit
to sinsoku/rubocop
that referenced
this issue
Mar 27, 2017
11 tasks
4 tasks
Drenmi
added a commit
to Drenmi/rubocop
that referenced
this issue
Mar 28, 2017
This cop would register an offense when one of the methods `#include`, `#extend`, or `#prepend` was sent to an explicit receiver, or used as an argument to another method. This change fixes that.
Hi, I think the something is happening for
|
@tagliala: It is fixed for all methods on |
@Drenmi thanks for answering.
edit: Please ignore me, it's fixed 👍 :) |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The new Style/MixinGrouping incorrectly registers an offense when rspec's include-expectation is used with multiple elements.
Expected behavior
Rubocop does not register an offense.
Actual behavior
Rubocop registers an offense.
Steps to reproduce the problem
Create the following file, e.g. as
mixin_grouping_spec.rb
:Call
rubocop mixin_grouping_spec.rb
:RuboCop version
The text was updated successfully, but these errors were encountered: