Sha256: ea549c8c573ee416cc3f6e63c328c7c03feab26a3fa5d8130ce513ac2a7fa4b1
Contents?: true
Size: 635 Bytes
Versions: 7
Compression:
Stored size: 635 Bytes
Contents
# encoding: utf-8 require 'spec_helper' module Rubocop module Cop module Style describe SpaceAfterSemicolon do let(:space) { SpaceAfterSemicolon.new } it 'registers an offence for semicolon without space after it' do inspect_source(space, ['x = 1;y = 2']) expect(space.offences.map(&:message)).to eq( ['Space missing after semicolon.']) end it 'does not crash if semicolon is the last character of the file' do inspect_source(space, ['x = 1;']) expect(space.offences.map(&:message)).to be_empty end end end end end
Version data entries
7 entries across 7 versions & 2 rubygems