lib/rubocop/cop/rspec/before_after_all.rb in rubocop-rspec-1.18.0 vs lib/rubocop/cop/rspec/before_after_all.rb in rubocop-rspec-1.19.0

- old
+ new

@@ -33,10 +33,14 @@ $(send _ {:before :after} (sym {:all :context})) PATTERN def on_send(node) before_or_after_all(node) do |hook| - add_offense(node, :expression, format(MSG, hook: hook.source)) + add_offense( + node, + location: :expression, + message: format(MSG, hook: hook.source) + ) end end end end end