Skip to content

Commit 29eb4d3

Browse files
authored
Merge pull request #31 from rubocop/fix-internal-affair-example-description-offenses
Fix InternalAffairs/ExampleDescription offenses
2 parents 225b71a + e7f28cf commit 29eb4d3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spec/rubocop/cop/rspec_rails/inferred_spec_type_spec.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
end
1212

1313
describe 'with redundant type in keyword arguments' do
14-
it 'register and corrects an offense' do
14+
it 'registers and corrects an offense' do
1515
expect_offense(<<~RUBY, '/path/to/project/spec/models/user_spec.rb')
1616
RSpec.describe User, type: :model do
1717
^^^^^^^^^^^^ Remove redundant spec type.
@@ -26,7 +26,7 @@
2626
end
2727

2828
describe 'with redundant type in Hash arguments' do
29-
it 'register and corrects an offense' do
29+
it 'registers and corrects an offense' do
3030
expect_offense(<<~RUBY, '/path/to/project/spec/models/user_spec.rb')
3131
RSpec.describe User, { type: :model } do
3232
^^^^^^^^^^^^^^^^ Remove redundant spec type.
@@ -41,7 +41,7 @@
4141
end
4242

4343
describe 'with redundant type before other Hash metadata' do
44-
it 'register and corrects an offense' do
44+
it 'registers and corrects an offense' do
4545
expect_offense(<<~RUBY, '/path/to/project/spec/models/user_spec.rb')
4646
RSpec.describe User, type: :model, other: true do
4747
^^^^^^^^^^^^ Remove redundant spec type.
@@ -56,7 +56,7 @@
5656
end
5757

5858
describe 'with redundant type after other Hash metadata' do
59-
it 'register and corrects an offense' do
59+
it 'registers and corrects an offense' do
6060
expect_offense(<<~RUBY, '/path/to/project/spec/models/user_spec.rb')
6161
RSpec.describe User, other: true, type: :model do
6262
^^^^^^^^^^^^ Remove redundant spec type.
@@ -71,7 +71,7 @@
7171
end
7272

7373
describe 'with redundant type and other Symbol metadata' do
74-
it 'register and corrects an offense' do
74+
it 'registers and corrects an offense' do
7575
expect_offense(<<~RUBY, '/path/to/project/spec/models/user_spec.rb')
7676
RSpec.describe User, :other, type: :model do
7777
^^^^^^^^^^^^ Remove redundant spec type.
@@ -86,7 +86,7 @@
8686
end
8787

8888
describe 'with redundant type and receiver-less describe' do
89-
it 'register and corrects an offense' do
89+
it 'registers and corrects an offense' do
9090
expect_offense(<<~RUBY, '/path/to/project/spec/models/user_spec.rb')
9191
describe User, type: :model do
9292
^^^^^^^^^^^^ Remove redundant spec type.
@@ -101,7 +101,7 @@
101101
end
102102

103103
describe 'with redundant type in inner example group' do
104-
it 'register and corrects an offense' do
104+
it 'registers and corrects an offense' do
105105
expect_offense(<<~RUBY, '/path/to/project/spec/models/user_spec.rb')
106106
RSpec.describe User do
107107
describe 'inner', type: :model do
@@ -128,7 +128,7 @@
128128
}
129129
end
130130

131-
it 'register and corrects an offense' do
131+
it 'registers and corrects an offense' do
132132
expect_offense(<<~RUBY, '/path/to/project/spec/services/user_spec.rb')
133133
RSpec.describe User, type: :service do
134134
^^^^^^^^^^^^^^ Remove redundant spec type.

0 commit comments

Comments
 (0)