Sha256: 750a59c01ba0d1cfca646602bdbeb10c3a88bc21ccb9b8cb9d1724ccbda87b88

Contents?: true

Size: 276 Bytes

Versions: 8

Compression:

Stored size: 276 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Rubocop::Cop::Style::EndBlock do
  subject(:cop) { described_class.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

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
ridecharge-rubocop-0.0.1 spec/rubocop/cop/style/end_block_spec.rb
rubocop-0.18.1 spec/rubocop/cop/style/end_block_spec.rb
rubocop-0.18.0 spec/rubocop/cop/style/end_block_spec.rb
rubocop-0.17.0 spec/rubocop/cop/style/end_block_spec.rb
rubocop-0.16.0 spec/rubocop/cop/style/end_block_spec.rb
rubocop-0.15.0 spec/rubocop/cop/style/end_block_spec.rb
rubocop-0.14.1 spec/rubocop/cop/style/end_block_spec.rb
rubocop-0.14.0 spec/rubocop/cop/style/end_block_spec.rb