Commit 946e8d3a authored by Grzegorz Bizon's avatar Grzegorz Bizon

Use only/except policy that returns an array

parent a061a246
...@@ -15,10 +15,6 @@ module Gitlab ...@@ -15,10 +15,6 @@ module Gitlab
validations do validations do
validates :config, array_of_strings_or_regexps: true validates :config, array_of_strings_or_regexps: true
end end
def value
{ refs: @config }
end
end end
class ExpressionsPolicy < Entry::Node class ExpressionsPolicy < Entry::Node
......
...@@ -17,7 +17,7 @@ describe Gitlab::Ci::Config::Entry::Policy do ...@@ -17,7 +17,7 @@ describe Gitlab::Ci::Config::Entry::Policy do
describe '#value' do describe '#value' do
it 'returns key value' do it 'returns key value' do
expect(entry.value).to eq(refs: config) expect(entry.value).to eq config
end end
end 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