Sha256: 3cc112153234f0c65777ae23deef43f485510f96a3be1f6c5f92b076d8728d8d
Contents?: true
Size: 410 Bytes
Versions: 9
Compression:
Stored size: 410 Bytes
Contents
# encoding: utf-8 require 'spec_helper' module Rubocop module Cop describe SpaceAfterSemicolon do let(:space) { SpaceAfterSemicolon.new } it 'registers an offence for semicolon without space after it' do inspect_source(space, 'file.rb', ['x = 1;y = 2']) expect(space.offences.map(&:message)).to eq( ['Space missing after semicolon.']) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems