Sha256: 040d20032e33a19cb34cf6dc5ef2f64b4e143fed43ac775b7623ad83db3b55cc
Contents?: true
Size: 366 Bytes
Versions: 2
Compression:
Stored size: 366 Bytes
Contents
# encoding: utf-8 require 'spec_helper' module Rubocop module Cop module Style describe BeginBlock do subject(:cop) { BeginBlock.new } it 'reports an offence for a BEGIN block' do src = ['BEGIN { 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/begin_block_spec.rb |
rubocop-0.13.0 | spec/rubocop/cop/style/begin_block_spec.rb |