Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
This commit fixes the following build error:

```
Check spelling of all files with codespell: spec/rubocop/cop/style/redundant_exception_spec.rb#L120
valiable ==> variable, valuable, available
Check spelling of all files with codespell: spec/rubocop/cop/style/redundant_exception_spec.rb#L125
valiable ==> variable, valuable, available
```

https://github.com/rubocop/rubocop/actions/runs/6484903585
  • Loading branch information
koic committed Oct 11, 2023
1 parent 873cb9f commit 84840b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/rubocop/cop/style/redundant_exception_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@
RUBY
end

it 'registers an offense for raise with RuntimeError, valiable' do
it 'registers an offense for raise with RuntimeError, variable' do
expect_offense(<<~RUBY)
raise RuntimeError, valiable
raise RuntimeError, variable
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Redundant `RuntimeError` argument can be removed.
RUBY

expect_correction(<<~RUBY)
raise valiable.to_s
raise variable.to_s
RUBY
end
end

0 comments on commit 84840b8

Please sign in to comment.