rspec-style-guide
rspec-style-guide copied to clipboard
Discourage using `it_should_behave_like` and friends
There's a number of methods that have modern counterparts, recommend using the new ones instead.
For reference, here's where this was added: https://github.com/rspec/rspec-core/commit/7b0d232
Why? I don't see why this requires a cop. It's perfectly fine to have readable code sentences, which is why there's first-class support for aliases in rspec.
Basically because "should" syntax is being removed from RSpec, along with all references to it. See https://github.com/rspec/rspec-core/pull/2864/files#diff-8c60417422cf21f6d3abdc5b63d992eee058c43039601cc0cee1d7111db85420L1133