Skip to content

Commit

Permalink
Adjust spec to allow pending Enabled state
Browse files Browse the repository at this point in the history
  • Loading branch information
pirj committed Aug 24, 2020
1 parent d1f61c6 commit 199b443
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/project/default_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ def cop_configuration(config_key)
expect(cop_configuration('Description')).to all(end_with('.'))
end

it 'includes Enabled: true for every cop' do
expect(cop_configuration('Enabled')).to all(be(true).or(be(false)))
it 'includes a valid Enabled for every cop' do
expect(cop_configuration('Enabled'))
.to all be(true).or(be(false)).or(eq('pending'))
end
end

0 comments on commit 199b443

Please sign in to comment.