Skip to content

Commit

Permalink
Have a maximum of 2 expectations per example in specs
Browse files Browse the repository at this point in the history
1 expectation per example is way too strict.
  • Loading branch information
Dany Marcoux committed Jul 28, 2021
1 parent eb164f5 commit 6e798a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/.rubocop.yml
Expand Up @@ -309,6 +309,8 @@ RSpec/LetSetup:

# We sometimes have a lot of expectations when testing complete workflows
RSpec/MultipleExpectations:
# We accept maximum 2 expectations in an example (the default value is 1 expectation)
Max: 2
Exclude:
- 'spec/features/**/*.rb'
- 'spec/bootstrap/features/**/*.rb'
Expand Down

0 comments on commit 6e798a8

Please sign in to comment.