lib/rubocop/cop/rspec/it_behaves_like.rb in rubocop-rspec-2.1.0 vs lib/rubocop/cop/rspec/it_behaves_like.rb in rubocop-rspec-2.2.0
- old
+ new
@@ -22,9 +22,10 @@
extend AutoCorrector
include ConfigurableEnforcedStyle
MSG = 'Prefer `%<replacement>s` over `%<original>s` when including ' \
'examples in a nested context.'
+ RESTRICT_ON_SEND = %i[it_behaves_like it_should_behave_like].freeze
def_node_matcher :example_inclusion_offense, '(send _ % ...)'
def on_send(node)
example_inclusion_offense(node, alternative_style) do