Sha256: 17cc55a3c1f78c0c9273d0b3baf866e80705b46024faaaa48149906b11a52873

Contents?: true

Size: 355 Bytes

Versions: 7

Compression:

Stored size: 355 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

module Rubocop
  module Cop
    module Style
      describe EndBlock do
        let(:cop) { EndBlock.new }

        it 'reports an offence for an END block' do
          src = ['END { test }']
          inspect_source(cop, src)
          expect(cop.offences.size).to eq(1)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
rubocop-0.12.0 spec/rubocop/cop/style/end_block_spec.rb
rubocop-0.11.1 spec/rubocop/cop/style/end_block_spec.rb
rubocop-0.11.0 spec/rubocop/cops/style/end_block_spec.rb
rubocop-0.10.0 spec/rubocop/cops/style/end_block_spec.rb
rubocop-0.9.1 spec/rubocop/cops/style/end_block_spec.rb
sabat-rubocop-0.9.0 spec/rubocop/cops/style/end_block_spec.rb
rubocop-0.9.0 spec/rubocop/cops/style/end_block_spec.rb