Sha256: 96e873125257e07720bb62767eb62c2d0b42b234a55e123d0627c8120c572e00

Contents?: true

Size: 359 Bytes

Versions: 2

Compression:

Stored size: 359 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

module Rubocop
  module Cop
    module Style
      describe EndBlock do
        subject(: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

2 entries across 2 versions & 1 rubygems

Version Path
rubocop-0.13.1 spec/rubocop/cop/style/end_block_spec.rb
rubocop-0.13.0 spec/rubocop/cop/style/end_block_spec.rb