Sha256: a525e19a3d64ec9d6908f2e8b828c5c68c70b2e053af0a81a38b7685735fc3d1
Contents?: true
Size: 545 Bytes
Versions: 7
Compression:
Stored size: 545 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Rubocop::Cop::Style::SpaceAfterNot do subject(:cop) { described_class.new } it 'reports an offence for space after !' do inspect_source(cop, ['! something']) expect(cop.offences.size).to eq(1) end it 'accepts no space after !' do inspect_source(cop, ['!something']) expect(cop.offences).to be_empty end it 'auto-corrects by removing redundant space' do new_source = autocorrect_source(cop, '! something') expect(new_source).to eq('!something') end end
Version data entries
7 entries across 7 versions & 2 rubygems