lib/rubocop/cop/rspec/before_after_all.rb in rubocop-rspec-2.1.0 vs lib/rubocop/cop/rspec/before_after_all.rb in rubocop-rspec-2.2.0
- old
+ new
@@ -27,9 +27,11 @@
MSG = 'Beware of using `%<hook>s` as it may cause state to leak ' \
'between tests. If you are using `rspec-rails`, and ' \
'`use_transactional_fixtures` is enabled, then records created ' \
'in `%<hook>s` are not automatically rolled back.'
+ RESTRICT_ON_SEND = %i[before after].freeze
+
def_node_matcher :before_or_after_all, <<-PATTERN
$(send _ {:before :after} (sym {:all :context}))
PATTERN
def on_send(node)