lib/rubocop/cop/rspec/example_wording.rb in rubocop-rspec-1.3.0 vs lib/rubocop/cop/rspec/example_wording.rb in rubocop-rspec-1.3.1

- old
+ new

@@ -19,11 +19,11 @@ # end class ExampleWording < Cop MSG = 'Do not use should when describing your tests.' def on_block(node) # rubocop:disable Metrics/AbcSize - method, _, _ = *node + method, = *node _, method_name, *args = *method return unless method_name == :it arguments = *(args.first) @@ -36,10 +36,10 @@ add_offense(message, message, MSG) end def autocorrect(range) - @corrections << lambda do |corrector| + lambda do |corrector| corrector.replace(range, corrected_message(range)) end end private