Sha256: 42c095a969d5cc122349b6bc83d657091def0fe5b33fd736258c609ac2a2941f
Contents?: true
Size: 616 Bytes
Versions: 7
Compression:
Stored size: 616 Bytes
Contents
# encoding: utf-8 require 'spec_helper' module Rubocop module Cop module Style describe BlockComments do let(:block) { BlockComments.new } it 'registers an offence for block comments' do inspect_source(block, ['=begin', 'comment', '=end']) expect(block.offences.size).to eq(1) end it 'accepts regular comments' do inspect_source(block, ['# comment']) expect(block.offences).to be_empty end end end end end
Version data entries
7 entries across 7 versions & 2 rubygems