Skip to content

Commit 97afb4b

Browse files
committed
Fix a typo
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 ^^^^^^^^^^^^^^^^^^^^^^ ```
1 parent 83c0968 commit 97afb4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/rubocop/cop/rails/redundant_allow_nil_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
end
9090

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

0 commit comments

Comments
 (0)