lib/rubocop/cop/rspec/hook_argument.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/hook_argument.rb in rubocop-rspec-2.3.0

- old
+ new

@@ -62,13 +62,15 @@ include ConfigurableEnforcedStyle IMPLICIT_MSG = 'Omit the default `%<scope>p` argument for RSpec hooks.' EXPLICIT_MSG = 'Use `%<scope>p` for RSpec hooks.' + # @!method scoped_hook(node) def_node_matcher :scoped_hook, <<-PATTERN (block $(send _ #Hooks.all (sym ${:each :example})) ...) PATTERN + # @!method unscoped_hook(node) def_node_matcher :unscoped_hook, '(block $(send _ #Hooks.all) ...)' def on_block(node) hook(node) do |method_send, scope_name| return correct_style_detected if scope_name.equal?(style)