Sha256: 10f7acd98c6bfa1f5aec5c61fcc9005d0e6520436548a9e99c3c3c4648d73e39
Contents?: true
Size: 405 Bytes
Versions: 6
Compression:
Stored size: 405 Bytes
Contents
# encoding: utf-8 require 'spec_helper' module Rubocop module Cop module Style describe Attr do let(:cop) { Attr.new } it 'registers an offence attr' do inspect_source(cop, ['class SomeClass', ' attr :name', 'end']) expect(cop.offences.size).to eq(1) end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems