Skip to content

Commit

Permalink
Merge pull request #87 from alphagov/disable-context-wording
Browse files Browse the repository at this point in the history
Add more prefixes for RSpec/ContextWording
  • Loading branch information
benthorner committed Jun 4, 2020
2 parents 7cffceb + 67fef74 commit 312157b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- Remove cops that are RuboCop defaults (#88)
- Disable Rails/DynamicFindBy
- Permit "and", "but" with RSpec/ContextWording

# 3.14.0

Expand Down
10 changes: 10 additions & 0 deletions config/rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,13 @@ RSpec/MessageSpies:
# it's not clear what action to take to fix an issue.
RSpec/NestedGroups:
Enabled: false

# Nested contexts make more sense with "and" or "but", since
# they are a refinement of an outer context.
RSpec/ContextWording:
Prefixes:
- when
- with
- without
- and
- but

0 comments on commit 312157b

Please sign in to comment.