lib/rubocop/cop/rspec/implicit_block_expectation.rb in rubocop-rspec-2.1.0 vs lib/rubocop/cop/rspec/implicit_block_expectation.rb in rubocop-rspec-2.2.0

- old
+ new

@@ -16,9 +16,10 @@ # it 'changes something to a new value' do # expect { do_something }.to change(something).to(new_value) # end class ImplicitBlockExpectation < Base MSG = 'Avoid implicit block expectations.' + RESTRICT_ON_SEND = %i[is_expected should should_not].freeze def_node_matcher :lambda?, <<-PATTERN { (send (const nil? :Proc) :new) (send nil? {:proc :lambda})