Sha256: c6b04abc6d14fbddc6f1511ff60e89d209f8b83ceafc37d75617c58d96130bc1
Contents?: true
Size: 395 Bytes
Versions: 2
Compression:
Stored size: 395 Bytes
Contents
# encoding: utf-8 require 'spec_helper' module Rubocop module Cop module Rails describe ReadAttribute do subject(:cop) { described_class.new } it 'registers an offence for read_attribute' do inspect_source(cop, ['res = read_attribute(:test)']) 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/rails/read_attribute_spec.rb |
rubocop-0.13.0 | spec/rubocop/cop/rails/read_attribute_spec.rb |