Skip to content

Commit

Permalink
Lint/EmptyWhen Add explicit config that is differing from default [#7999
Browse files Browse the repository at this point in the history
]
  • Loading branch information
marcandre committed May 21, 2020
1 parent 8cee1c7 commit 36d3e30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/rubocop/cop/lint/empty_when_spec.rb
Expand Up @@ -36,6 +36,8 @@
end
end

let(:cop_config) { { 'AllowComments' => false } }

let(:message) { 'Avoid `when` branches without a body.' }

context 'when a `when` body is missing' do
Expand Down

0 comments on commit 36d3e30

Please sign in to comment.