lib/rubocop/cop/rspec/example_wording.rb in rubocop-rspec-2.12.1 vs lib/rubocop/cop/rspec/example_wording.rb in rubocop-rspec-2.13.0

- old
+ new

@@ -27,10 +27,11 @@ # end # # # good # it 'does things' do # end + # class ExampleWording < Base extend AutoCorrector MSG_SHOULD = 'Do not use should when describing your tests.' MSG_IT = "Do not repeat 'it' when describing your tests." @@ -44,10 +45,10 @@ (str $_) (dstr (str $_ ) ...) } ...) ...) PATTERN - def on_block(node) + def on_block(node) # rubocop:disable InternalAffairs/NumblockHandler it_description(node) do |description_node, message| if message.match?(SHOULD_PREFIX) add_wording_offense(description_node, MSG_SHOULD) elsif message.match?(IT_PREFIX) add_wording_offense(description_node, MSG_IT)