Sha256: 8cf204525d10d4c0db51e46273f5bf894f87511dc027d7051fc0bb473d66436a
Contents?: true
Size: 480 Bytes
Versions: 6
Compression:
Stored size: 480 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Rubocop::Cop::Style::BlockComments do subject(:cop) { described_class.new } it 'registers an offense for block comments' do inspect_source(cop, ['=begin', 'comment', '=end']) expect(cop.offenses.size).to eq(1) end it 'accepts regular comments' do inspect_source(cop, ['# comment']) expect(cop.offenses).to be_empty end end
Version data entries
6 entries across 6 versions & 1 rubygems