spec/rubocop/cop/lint/void_spec.rb in rubocop-0.21.0 vs spec/rubocop/cop/lint/void_spec.rb in rubocop-0.22.0

- old
+ new

@@ -52,6 +52,14 @@ ]) expect(cop.offenses.size).to eq(1) end end + it 'accepts short call syntax' do + inspect_source(cop, + ['lambda.(a)', + 'top' + ]) + expect(cop.offenses).to be_empty + end + end