Skip to content

Commit

Permalink
Fix a typo
Browse files Browse the repository at this point in the history
This commit fixes the following issue:

```console
$ bundle exec rubocop -a
(snip)

spec/rubocop/cop/rails/redundant_allow_nil_spec.rb:92:8: C: [Correctable] InternalAffairs/ExampleDescription:
Description does not match use of expect_offense.
    it 'registers no offense' do
       ^^^^^^^^^^^^^^^^^^^^^^
```
  • Loading branch information
koic committed Mar 15, 2024
1 parent 83c0968 commit 97afb4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/rubocop/cop/rails/redundant_allow_nil_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
end

context 'when using allow_nil and allow_blank true on the same helper' do
it 'registers no offense' do
it 'registers an offense' do
expect_offense(<<~RUBY)
validates :email, format: { with: /regexp/, allow_nil: true, allow_blank: true }
^^^^^^^^^^^^^^^ `allow_nil` is redundant when `allow_blank` has the same value.
Expand Down

0 comments on commit 97afb4b

Please sign in to comment.