Replies: 1 comment
-
Hey! I'll separate in topics. ConfigurableThe Community RSpec Style Guide is quite flexible in this regard:
The Prefixes:
- when
- with
- without but you are encouraged to reconfigure that in your project or company-wide RuboCop settings to meet your style. PopularityA 3 y.o. research indicated the following frecency of prefix use:
Things might have changed since then. But still, "on" was far from the top of the list.
|
Beta Was this translation helpful? Give feedback.
-
Hey guys,
in my opinion it would be nice to allow the "on" keyword for contexts in the RSpec/ContextWording cop.
This would be especially nice to test rails hooks that works "on update" or "on create" or "on destroy".
But i guess this is some matter of oppinion, hence i started this discussion.
What do you think about this?
Beta Was this translation helpful? Give feedback.
All reactions