Skip to content

Commit

Permalink
Fix some rubocop offenses
Browse files Browse the repository at this point in the history
```
spec/rubocop/cop/rspec/repeated_example_group_description_spec.rb:93:6: C: [Corrected] InternalAffairs/ExampleDescription: Description does not match use of expect_offense.
  it 'register offense for different example group with similar descriptions' do
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/rubocop/cop/rspec/repeated_example_group_description_spec.rb:93:81: C: Layout/LineLength: Line is too long. [81/80]
  it 'registers offense for different example group with similar descriptions' do
                                                                                ^
spec/rubocop/cop/rspec/repeated_example_group_description_spec.rb:201:6: C: [Corrected] InternalAffairs/ExampleDescription: Description does not match use of expect_offense.
  it 'register offense if same method used in docstring' do
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```
  • Loading branch information
ydah committed Apr 25, 2024
1 parent 863bafa commit 8371327
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
RUBY
end

it 'register offense for different example group with similar descriptions' do
it 'registers offense for different example group with ' \
'similar descriptions' do
expect_offense(<<~RUBY)
describe 'Animal' do
^^^^^^^^^^^^^^^^^^^^ Repeated describe block description on line(s) [5]
Expand Down Expand Up @@ -198,7 +199,7 @@
RUBY
end

it 'register offense if same method used in docstring' do
it 'registers offense if same method used in docstring' do
expect_offense(<<~RUBY)
context(description) do
^^^^^^^^^^^^^^^^^^^^^^^ Repeated context block description on line(s) [5]
Expand Down

0 comments on commit 8371327

Please sign in to comment.