Skip to content

Commit 28b274b

Browse files
committed
Suppress offenses of InternalAffairs/ExampleDescription
This commit suppresses the following offenses of `InternalAffairs/ExampleDescription`: ```console $ bundle exec rubocop (snip) spec/rubocop/cop/rails/bulk_change_table_spec.rb:348:8: C: [Correctable] InternalAffairs/ExampleDescription: Description does not match use of expect_offense. it 'register an offense when using string as table name' do ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ spec/rubocop/cop/rails/bulk_change_table_spec.rb:358:8: C: [Correctable] InternalAffairs/ExampleDescription: Description does not match use of expect_offense. it 'register an offense when using mixed style table name' do ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ spec/rubocop/cop/rails/lexically_scoped_action_filter_spec.rb:61:6: C: [Correctable] InternalAffairs/ExampleDescription: Description does not match use of expect_offense. it 'register an offense when using action filter in module' do ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ spec/rubocop/cop/rails/read_write_attribute_spec.rb:16:8: C: [Correctable] InternalAffairs/ExampleDescription: Description does not match use of expect_offense. it 'register an offense and corrects a string' do ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 292 files inspected, 4 offenses detected, 4 offenses autocorrectable ```
1 parent cf400eb commit 28b274b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

spec/rubocop/cop/rails/bulk_change_table_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def change; end
345345
RUBY
346346
end
347347

348-
it 'register an offense when using string as table name' do
348+
it 'registers an offense when using string as table name' do
349349
expect_offense(<<~RUBY)
350350
def change
351351
remove_index "users", :name
@@ -355,7 +355,7 @@ def change
355355
RUBY
356356
end
357357

358-
it 'register an offense when using mixed style table name' do
358+
it 'registers an offense when using mixed style table name' do
359359
expect_offense(<<~RUBY)
360360
def change
361361
remove_index "users", :name

spec/rubocop/cop/rails/lexically_scoped_action_filter_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class LoginController < ApplicationController
5858
RUBY
5959
end
6060

61-
it 'register an offense when using action filter in module' do
61+
it 'registers an offense when using action filter in module' do
6262
expect_offense <<~RUBY
6363
module FooMixin
6464
extend ActiveSupport::Concern

spec/rubocop/cop/rails/read_write_attribute_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
RUBY
1414
end
1515

16-
it 'register an offense and corrects a string' do
16+
it 'registers an offense and corrects a string' do
1717
expect_offense(<<~RUBY)
1818
res = read_attribute('test')
1919
^^^^^^^^^^^^^^^^^^^^^^ Prefer `self['test']`.

0 commit comments

Comments
 (0)