Commit 2e901677 authored by lauraMon's avatar lauraMon

Add the type method to Entry::Undefined

parent 09315949
...@@ -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