You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the style guide says that context should always start with when, but with and without are also good descriptions of context and they are allowed by default in rubocop-rspec.
So I suggest to add them to the style guide as well.
# not so hot
context 'with sprinkles' ...
context 'when there are no sprinkles on top' ...
# better
context 'with sprinkles' ...
context 'without sprinkles' ...
The text was updated successfully, but these errors were encountered:
Currently the style guide says that context should always start with
when
, butwith
andwithout
are also good descriptions of context and they are allowed by default in rubocop-rspec.So I suggest to add them to the style guide as well.
rubocop-rspec pull request
betterspecs pull request
Rationale:
The text was updated successfully, but these errors were encountered: