Sha256: e06723c81c304592258e7ed6edc0a97f74ddd81a8281f6966498291f914ccc87
Contents?: true
Size: 322 Bytes
Versions: 2
Compression:
Stored size: 322 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe RuboCop::Cop::Rails::HasAndBelongsToMany do subject(:cop) { described_class.new } it 'registers an offense for has_and_belongs_to_many' do inspect_source(cop, 'has_and_belongs_to_many :groups') expect(cop.offenses.size).to eq(1) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.29.1 | spec/rubocop/cop/rails/has_and_belongs_to_many_spec.rb |
rubocop-0.29.0 | spec/rubocop/cop/rails/has_and_belongs_to_many_spec.rb |