|
11 | 11 | end
|
12 | 12 |
|
13 | 13 | describe 'with redundant type in keyword arguments' do
|
14 |
| - it 'register and corrects an offense' do |
| 14 | + it 'registers and corrects an offense' do |
15 | 15 | expect_offense(<<~RUBY, '/path/to/project/spec/models/user_spec.rb')
|
16 | 16 | RSpec.describe User, type: :model do
|
17 | 17 | ^^^^^^^^^^^^ Remove redundant spec type.
|
|
26 | 26 | end
|
27 | 27 |
|
28 | 28 | describe 'with redundant type in Hash arguments' do
|
29 |
| - it 'register and corrects an offense' do |
| 29 | + it 'registers and corrects an offense' do |
30 | 30 | expect_offense(<<~RUBY, '/path/to/project/spec/models/user_spec.rb')
|
31 | 31 | RSpec.describe User, { type: :model } do
|
32 | 32 | ^^^^^^^^^^^^^^^^ Remove redundant spec type.
|
|
41 | 41 | end
|
42 | 42 |
|
43 | 43 | 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 |
45 | 45 | expect_offense(<<~RUBY, '/path/to/project/spec/models/user_spec.rb')
|
46 | 46 | RSpec.describe User, type: :model, other: true do
|
47 | 47 | ^^^^^^^^^^^^ Remove redundant spec type.
|
|
56 | 56 | end
|
57 | 57 |
|
58 | 58 | 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 |
60 | 60 | expect_offense(<<~RUBY, '/path/to/project/spec/models/user_spec.rb')
|
61 | 61 | RSpec.describe User, other: true, type: :model do
|
62 | 62 | ^^^^^^^^^^^^ Remove redundant spec type.
|
|
71 | 71 | end
|
72 | 72 |
|
73 | 73 | 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 |
75 | 75 | expect_offense(<<~RUBY, '/path/to/project/spec/models/user_spec.rb')
|
76 | 76 | RSpec.describe User, :other, type: :model do
|
77 | 77 | ^^^^^^^^^^^^ Remove redundant spec type.
|
|
86 | 86 | end
|
87 | 87 |
|
88 | 88 | 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 |
90 | 90 | expect_offense(<<~RUBY, '/path/to/project/spec/models/user_spec.rb')
|
91 | 91 | describe User, type: :model do
|
92 | 92 | ^^^^^^^^^^^^ Remove redundant spec type.
|
|
101 | 101 | end
|
102 | 102 |
|
103 | 103 | 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 |
105 | 105 | expect_offense(<<~RUBY, '/path/to/project/spec/models/user_spec.rb')
|
106 | 106 | RSpec.describe User do
|
107 | 107 | describe 'inner', type: :model do
|
|
128 | 128 | }
|
129 | 129 | end
|
130 | 130 |
|
131 |
| - it 'register and corrects an offense' do |
| 131 | + it 'registers and corrects an offense' do |
132 | 132 | expect_offense(<<~RUBY, '/path/to/project/spec/services/user_spec.rb')
|
133 | 133 | RSpec.describe User, type: :service do
|
134 | 134 | ^^^^^^^^^^^^^^ Remove redundant spec type.
|
|
0 commit comments