lib/rubocop/rspec/language.rb in rubocop-rspec-2.12.1 vs lib/rubocop/rspec/language.rb in rubocop-rspec-2.13.0

- old
+ new

@@ -39,10 +39,15 @@ # @!method example?(node) def_node_matcher :example?, block_pattern('#Examples.all') # @!method hook?(node) - def_node_matcher :hook?, block_pattern('#Hooks.all') + def_node_matcher :hook?, <<-PATTERN + { + #{block_pattern('#Hooks.all')} + #{numblock_pattern('#Hooks.all')} + } + PATTERN # @!method let?(node) def_node_matcher :let?, <<-PATTERN { #{block_pattern('#Helpers.all')}