Commit 00e58f83 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Use parentheses in CI/CD kubernetes policy specs

parent f52c61f8
......@@ -24,7 +24,7 @@ describe Gitlab::Ci::Build::Policy::Kubernetes do
context 'when kubernetes policy is invalid' do
it 'raises an error' do
expect { described_class.new('unknown') }
.to raise_error described_class::UnknownPolicyError
.to raise_error(described_class::UnknownPolicyError)
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment