lib/rubocop/cop/rspec/around_block.rb in rubocop-rspec-1.32.0 vs lib/rubocop/cop/rspec/around_block.rb in rubocop-rspec-1.33.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module RuboCop module Cop module RSpec # Checks that around blocks actually run the test. # @@ -22,12 +24,12 @@ # around do |test| # some_method # test.run # end class AroundBlock < Cop - MSG_NO_ARG = 'Test object should be passed to around block.'.freeze + MSG_NO_ARG = 'Test object should be passed to around block.' MSG_UNUSED_ARG = 'You should call `%<arg>s.call` '\ - 'or `%<arg>s.run`.'.freeze + 'or `%<arg>s.run`.' def_node_matcher :hook, <<-PATTERN (block {(send nil? :around) (send nil? :around sym)} (args $...) ...) PATTERN