From e7f28cfe8790fd737ab5aec351cfb419aae04da7 Mon Sep 17 00:00:00 2001 From: Benjamin Quorning Date: Mon, 20 May 2024 11:34:54 +0200 Subject: [PATCH] Fix InternalAffairs/ExampleDescription offenses --- .../cop/rspec_rails/inferred_spec_type_spec.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/spec/rubocop/cop/rspec_rails/inferred_spec_type_spec.rb b/spec/rubocop/cop/rspec_rails/inferred_spec_type_spec.rb index 0faf312d..55a68f7a 100644 --- a/spec/rubocop/cop/rspec_rails/inferred_spec_type_spec.rb +++ b/spec/rubocop/cop/rspec_rails/inferred_spec_type_spec.rb @@ -11,7 +11,7 @@ end describe 'with redundant type in keyword arguments' do - it 'register and corrects an offense' do + it 'registers and corrects an offense' do expect_offense(<<~RUBY, '/path/to/project/spec/models/user_spec.rb') RSpec.describe User, type: :model do ^^^^^^^^^^^^ Remove redundant spec type. @@ -26,7 +26,7 @@ end describe 'with redundant type in Hash arguments' do - it 'register and corrects an offense' do + it 'registers and corrects an offense' do expect_offense(<<~RUBY, '/path/to/project/spec/models/user_spec.rb') RSpec.describe User, { type: :model } do ^^^^^^^^^^^^^^^^ Remove redundant spec type. @@ -41,7 +41,7 @@ end describe 'with redundant type before other Hash metadata' do - it 'register and corrects an offense' do + it 'registers and corrects an offense' do expect_offense(<<~RUBY, '/path/to/project/spec/models/user_spec.rb') RSpec.describe User, type: :model, other: true do ^^^^^^^^^^^^ Remove redundant spec type. @@ -56,7 +56,7 @@ end describe 'with redundant type after other Hash metadata' do - it 'register and corrects an offense' do + it 'registers and corrects an offense' do expect_offense(<<~RUBY, '/path/to/project/spec/models/user_spec.rb') RSpec.describe User, other: true, type: :model do ^^^^^^^^^^^^ Remove redundant spec type. @@ -71,7 +71,7 @@ end describe 'with redundant type and other Symbol metadata' do - it 'register and corrects an offense' do + it 'registers and corrects an offense' do expect_offense(<<~RUBY, '/path/to/project/spec/models/user_spec.rb') RSpec.describe User, :other, type: :model do ^^^^^^^^^^^^ Remove redundant spec type. @@ -86,7 +86,7 @@ end describe 'with redundant type and receiver-less describe' do - it 'register and corrects an offense' do + it 'registers and corrects an offense' do expect_offense(<<~RUBY, '/path/to/project/spec/models/user_spec.rb') describe User, type: :model do ^^^^^^^^^^^^ Remove redundant spec type. @@ -101,7 +101,7 @@ end describe 'with redundant type in inner example group' do - it 'register and corrects an offense' do + it 'registers and corrects an offense' do expect_offense(<<~RUBY, '/path/to/project/spec/models/user_spec.rb') RSpec.describe User do describe 'inner', type: :model do @@ -128,7 +128,7 @@ } end - it 'register and corrects an offense' do + it 'registers and corrects an offense' do expect_offense(<<~RUBY, '/path/to/project/spec/services/user_spec.rb') RSpec.describe User, type: :service do ^^^^^^^^^^^^^^ Remove redundant spec type.