Sha256: 40c32c74771198247ef5f5cfe5d7b2bc00734b73a46615fc0bab63c2aba589fd
Contents?: true
Size: 334 Bytes
Versions: 13
Compression:
Stored size: 334 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe RuboCop::Cop::Style::InlineComment do it 'registers an offense for a inline comment' do code = 'two = 1 + 1 # An inline comment' expect(subject).to find_offenses_in(code) .with_message('Avoid inline comments.') .with_highlight('# An inline comment') end end
Version data entries
13 entries across 13 versions & 2 rubygems