Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add a cop to enforce aggregating examples #726
Add a cop to enforce aggregating examples #726
Changes from all commits
916eb9b
4ad3e68
4aa83a9
0adfd01
e2a5b18
a9b2983
5e3a001
b2c86c1
3a756e2
00f99ce
e32b9a6
4dad154
dd47c96
9928939
b9de045
3d5f62a
9655c29
b2d5e60
ef3382a
0c04a79
e394a6a
a7510b9
46553f1
458fbf3
81c81c1
1e740ab
318c77c
8906bf3
2a93dfd
4b0b0cc
367c7a6
536fb90
5745c03
df23cf5
3522224
c38d4f6
c0f67ec
a1ebfad
0263d7f
3e0fbfc
30e3463
b133213
38b1e73
82df911
9d613a7
aa2fd4a
0237824
d6c2c37
9e00508
f1c0a23
ad16b40
abe9f0e
2bba4e4
6c3afc1
a5542f5
bfbe3f2
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Where does this list come from? They look a bit like Rails validators, but they include an
s
on “validates”, and not all are listed:Where does
allow_value
andallow_values
come from?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.
Ahh, they are Shoulda matchers, aren’t they? I’m not sure how I feel about Shoulda sneaking into our default configuration. Not all rubocop-rspec users use Shoulda, let alone Rails.
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.
Agree, but honestly, I'm not sure how to make this safe and not tiresome to configure by default at the same time.
A couple of arguments for keeping this in the default config:
UsingShouldaMatchers
configurable and off by default, but what if side effects are eventually fixed in some later version ofshoulda-matchers
?Rails/HttpStatus
in our default config, which is for one of the fewrspec-rails
matchers. Do you think there's a critical mass already to extract those to a separate gem?