lib/rubocop/cop/rspec/implicit_expect.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/implicit_expect.rb in rubocop-rspec-2.3.0
- old
+ new
@@ -28,9 +28,10 @@
extend AutoCorrector
include ConfigurableEnforcedStyle
MSG = 'Prefer `%<good>s` over `%<bad>s`.'
+ # @!method implicit_expect(node)
def_node_matcher :implicit_expect, <<-PATTERN
{
(send nil? ${:should :should_not} ...)
(send (send nil? $:is_expected) #Runners.all ...)
}