Skip to content

Commit 94a3c21

Browse files
committed
Suppress InternalAffairs/RedundantContextConfigParameter offenses
Follow up of rubocop/rubocop#10412. This commit suppresses the following offenses. ```console % bundle exec rubocop -a (snip) Offenses: spec/rubocop/cop/rails/application_job_spec.rb:4:34: C: [Corrected] InternalAffairs/RedundantContextConfigParameter: Remove the redundant :config parameter. context 'Rails 4.2', :rails42, :config do ^^^^^^^ spec/rubocop/cop/rails/application_mailer_spec.rb:4:34: C: [Corrected] InternalAffairs/RedundantContextConfigParameter: Remove the redundant :config parameter. context 'Rails 4.2', :rails42, :config do ^^^^^^^ spec/rubocop/cop/rails/application_record_spec.rb:4:34: C: [Corrected] InternalAffairs/RedundantContextConfigParameter: Remove the redundant :config parameter. context 'Rails 4.2', :rails42, :config do ^^^^^^^ spec/rubocop/cop/rails/http_positional_arguments_spec.rb:4:34: C: [Corrected] InternalAffairs/RedundantContextConfigParameter: Remove the redundant :config parameter. context 'Rails 4.2', :rails42, :config do ^^^^^^^ 236 files inspected, 4 offenses detected, 4 offenses corrected ```
1 parent 74be4d6 commit 94a3c21

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

spec/rubocop/cop/rails/application_job_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
RSpec.describe RuboCop::Cop::Rails::ApplicationJob, :config, :config do
4-
context 'Rails 4.2', :rails42, :config do
4+
context 'Rails 4.2', :rails42 do
55
it 'allows ApplicationJob to be defined' do
66
expect_no_offenses(<<~RUBY)
77
class ApplicationJob < ActiveJob::Base

spec/rubocop/cop/rails/application_mailer_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
RSpec.describe RuboCop::Cop::Rails::ApplicationMailer, :config, :config do
4-
context 'Rails 4.2', :rails42, :config do
4+
context 'Rails 4.2', :rails42 do
55
it 'allows `ApplicationMailer` to be defined' do
66
expect_no_offenses(<<~RUBY)
77
class ApplicationMailer < ActionMailer::Base; end

spec/rubocop/cop/rails/application_record_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
RSpec.describe RuboCop::Cop::Rails::ApplicationRecord, :config, :config do
4-
context 'Rails 4.2', :rails42, :config do
4+
context 'Rails 4.2', :rails42 do
55
it 'allows ApplicationRecord to be defined' do
66
expect_no_offenses(<<~RUBY)
77
class ApplicationRecord < ActiveRecord::Base; end

spec/rubocop/cop/rails/http_positional_arguments_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
RSpec.describe RuboCop::Cop::Rails::HttpPositionalArguments, :config, :config do
4-
context 'Rails 4.2', :rails42, :config do
4+
context 'Rails 4.2', :rails42 do
55
it 'does not register an offense for get method' do
66
expect_no_offenses('get :create, user_id: @user.id')
77
end

0 commit comments

Comments
 (0)