Commit 6c464495 authored by Kerri Miller's avatar Kerri Miller

Merge branch 'lm-fix-500-error-using-dash-needs-ci-editor' into 'master'

Add `type` method to Entry::Undefined

See merge request gitlab-org/gitlab!76248
parents e5a2c3af 2e901677
...@@ -31,6 +31,10 @@ module Gitlab ...@@ -31,6 +31,10 @@ module Gitlab
false false
end end
def type
nil
end
def inspect def inspect
"#<#{self.class.name}>" "#<#{self.class.name}>"
end end
......
...@@ -40,4 +40,10 @@ RSpec.describe Gitlab::Config::Entry::Undefined do ...@@ -40,4 +40,10 @@ RSpec.describe Gitlab::Config::Entry::Undefined do
expect(entry.specified?).to eq false expect(entry.specified?).to eq false
end end
end end
describe '#type' do
it 'returns nil' do
expect(entry.type).to eq nil
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