Sha256: a1df993598494da23c509c7e9265556ca83658e16fa3ec27bbef85feef05f2e2

Contents?: true

Size: 279 Bytes

Versions: 2

Compression:

Stored size: 279 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe RuboCop::Cop::Style::BeginBlock do
  subject(:cop) { described_class.new }

  it 'reports an offense for a BEGIN block' do
    src = 'BEGIN { test }'
    inspect_source(cop, src)
    expect(cop.offenses.size).to eq(1)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubocop-0.29.1 spec/rubocop/cop/style/begin_block_spec.rb
rubocop-0.29.0 spec/rubocop/cop/style/begin_block_spec.rb