diff --git a/.rubocop.yml b/.rubocop.yml index ad3e7c36..b49bb9fb 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -20,3 +20,9 @@ Rails: FactoryBot/AttributeDefinedStatically: Enabled: true + + +RSpec/DescribeClass: + Exclude: + - "spec/views/**/*" + - "spec/ability/*" diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index ac245b76..dd702c07 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -522,14 +522,6 @@ RSpec/AnyInstance: RSpec/ContextWording: Enabled: false -# Offense count: 4 -RSpec/DescribeClass: - Exclude: - - 'spec/ability/ability_spec.rb' - - 'spec/models/admin_ability_spec.rb' - - 'spec/models/booth_spec.rb' - - 'spec/models/registration_spec.rb' - # Offense count: 73 # Cop supports --auto-correct. # Configuration parameters: SkipBlocks, EnforcedStyle. diff --git a/spec/models/booth_spec.rb b/spec/models/booth_spec.rb index d70159d6..1d9fe383 100644 --- a/spec/models/booth_spec.rb +++ b/spec/models/booth_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -describe 'Booth' do +describe Booth do subject { create(:booth) } let!(:conference) { create(:conference) } diff --git a/spec/models/registration_spec.rb b/spec/models/registration_spec.rb index ee3f0362..9f710416 100644 --- a/spec/models/registration_spec.rb +++ b/spec/models/registration_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -describe 'Registration' do +describe Registration do subject { create(:registration) } let!(:user) { create(:user) } let!(:conference) { create(:conference) }