lib/rubocop/cop/rspec/example_wording.rb in rubocop-rspec-1.30.0 vs lib/rubocop/cop/rspec/example_wording.rb in rubocop-rspec-1.30.1

- old
+ new

@@ -31,11 +31,11 @@ # end class ExampleWording < Cop MSG_SHOULD = 'Do not use should when describing your tests.'.freeze MSG_IT = "Do not repeat 'it' when describing your tests.".freeze - SHOULD_PREFIX = /\Ashould(?:n't)?\b/i - IT_PREFIX = /\Ait /i + SHOULD_PREFIX = /\Ashould(?:n't)?\b/i.freeze + IT_PREFIX = /\Ait /i.freeze def_node_matcher( :it_description, '(block (send _ :it $(str $_) ...) ...)' )