lib/rubocop/cop/rspec/it_behaves_like.rb in rubocop-rspec-1.33.0 vs lib/rubocop/cop/rspec/it_behaves_like.rb in rubocop-rspec-1.34.0
- old
+ new
@@ -26,10 +26,10 @@
def_node_matcher :example_inclusion_offense, '(send _ % ...)'
def on_send(node)
example_inclusion_offense(node, alternative_style) do
- add_offense(node, location: :expression)
+ add_offense(node)
end
end
def autocorrect(node)
->(corrector) { corrector.replace(node.loc.selector, style.to_s) }