Skip to content

Commit

Permalink
Lint/EmptyWhen Add explicit config that is differing from default [ru…
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre committed May 21, 2020
1 parent 3651d6b commit 98e115d
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 98e115d

Please sign in to comment.