lib/rubocop/cop/rspec/before_after_all.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/before_after_all.rb in rubocop-rspec-2.3.0
- old
+ new
@@ -29,9 +29,10 @@
'`use_transactional_fixtures` is enabled, then records created ' \
'in `%<hook>s` are not automatically rolled back.'
RESTRICT_ON_SEND = %i[before after].freeze
+ # @!method before_or_after_all(node)
def_node_matcher :before_or_after_all, <<-PATTERN
$(send _ {:before :after} (sym {:all :context}))
PATTERN
def on_send(node)