lib/rubocop/cop/rspec/let_before_examples.rb in rubocop-rspec-2.22.0 vs lib/rubocop/cop/rspec/let_before_examples.rb in rubocop-rspec-2.23.0
- old
+ new
@@ -49,9 +49,13 @@
(block (send nil? :include_examples ...) ...)
(send nil? :include_examples ...)
}
PATTERN
+ def self.autocorrect_incompatible_with
+ [RSpec::ScatteredLet]
+ end
+
def on_block(node) # rubocop:disable InternalAffairs/NumblockHandler
return unless example_group_with_body?(node)
check_let_declarations(node.body) if multiline_block?(node.body)
end