-
-
Notifications
You must be signed in to change notification settings - Fork 285
Closed
Description
In the company, we had a situation when someone pushed specs with duplicated context occasionally and only PR reviewers caught it.
context "when cool thing happens" do
# some examples
end
context "when cool thing happens" do
# some examples
endWe tried to find some cops in rubocop-rspec which will detect this kind of occasion, but there were only RSpec/RepeatedExample and RSpec/RepeatedDescription and these cops do not detect repeated descriptions in describe/context, only examples.
So my question is, does it worth to implement different cops for describe/context like above ones or we can extend them to cover these cases?
nikitasakau and pirj