Sha256: 0a6e7959ea3e144208c96c30b8798faa386cefdef072a94ae4de499dfa962d1d
Contents?: true
Size: 414 Bytes
Versions: 2
Compression:
Stored size: 414 Bytes
Contents
# encoding: utf-8 require 'spec_helper' module Rubocop module Cop module Rails describe HasAndBelongsToMany do subject(:cop) { described_class.new } it 'registers an offence for has_and_belongs_to_many' do inspect_source(cop, ['has_and_belongs_to_many :groups']) 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/has_and_belongs_to_many_spec.rb |
rubocop-0.13.0 | spec/rubocop/cop/rails/has_and_belongs_to_many_spec.rb |