Skip to content

Commit

Permalink
Fix some offenses for RSpec/ExampleWording
Browse files Browse the repository at this point in the history
This PR is fixed several offenses of `RSpec/ExampleWording`.

```ruby
❯ bundle exec rubocop
Inspecting 162 files
.............................................................................................................................C....................................

Offenses:

spec/rubocop/ast/node_pattern/lexer_spec.rb:34:9: C: RSpec/ExampleWording: Your example description is insufficient.
    it 'works' do
        ^^^^^
spec/rubocop/ast/node_pattern/lexer_spec.rb:80:9: C: RSpec/ExampleWording: Your example description is insufficient.
    it 'works' do
        ^^^^^

162 files inspected, 2 offenses detected
```
  • Loading branch information
ydah authored and marcandre committed Oct 26, 2022
1 parent af04232 commit e487124
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/rubocop/ast/node_pattern/lexer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
context 'with $type+' do
let(:source) { '(array sym $int+ x)' }

it 'works' do
it 'is parsed as `$ int + x`' do
expect(tokens.map(&:last).map(&:first)).to eq \
%i[( array sym $ int + x )]
end
Expand Down Expand Up @@ -77,7 +77,7 @@
context 'when given arithmetic symbols' do
let(:source) { ':&' }

it 'works' do
it 'is parsed as `:&`' do
expect(tokens.map(&:last).map(&:first)).to eq [:&]
end
end
Expand Down

0 comments on commit e487124

Please sign in to comment.