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

- old
+ new

@@ -45,20 +45,21 @@ # it { is_expected.to be_good } # it do # result = service.call # expect(result).to be(true) # end + # class ExampleWithoutDescription < Base include ConfigurableEnforcedStyle MSG_DEFAULT_ARGUMENT = 'Omit the argument when you want to ' \ 'have auto-generated description.' MSG_ADD_DESCRIPTION = 'Add a description.' # @!method example_description(node) def_node_matcher :example_description, '(send nil? _ $(str $_))' - def on_block(node) + def on_block(node) # rubocop:disable InternalAffairs/NumblockHandler return unless example?(node) check_example_without_description(node.send_node) example_description(node.send_node) do |message_node, message|