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

Version Path
rubocop-0.6.0 spec/rubocop/cops/space_after_semicolon_spec.rb
rubocop-0.5.0 spec/rubocop/cops/space_after_semicolon_spec.rb
rubocop-0.4.6 spec/rubocop/cops/space_after_semicolon_spec.rb
rubocop-0.4.5 spec/rubocop/cops/space_after_semicolon_spec.rb
rubocop-0.4.4 spec/rubocop/cops/space_after_semicolon_spec.rb
rubocop-0.4.3 spec/rubocop/cops/space_after_semicolon_spec.rb
rubocop-0.4.2 spec/rubocop/cops/space_after_semicolon_spec.rb
rubocop-0.4.1 spec/rubocop/cops/space_after_semicolon_spec.rb
rubocop-0.4.0 spec/rubocop/cops/space_after_semicolon_spec.rb