lib/rubocop/cop/rspec/predicate_matcher.rb in rubocop-rspec-1.20.1 vs lib/rubocop/cop/rspec/predicate_matcher.rb in rubocop-rspec-1.21.0
- old
+ new
@@ -309,19 +309,19 @@
def on_block(node)
check_explicit(node) if style == :explicit
end
- private
-
def autocorrect(node)
case style
when :inflected
autocorrect_inflected(node)
when :explicit
autocorrect_explicit(node)
end
end
+
+ private
# returns args location with whitespace
# @example
# foo 1, 2
# ^^^^^