Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2e901677
Commit
2e901677
authored
Dec 07, 2021
by
lauraMon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the type method to Entry::Undefined
parent
09315949
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
lib/gitlab/config/entry/undefined.rb
lib/gitlab/config/entry/undefined.rb
+4
-0
spec/lib/gitlab/config/entry/undefined_spec.rb
spec/lib/gitlab/config/entry/undefined_spec.rb
+6
-0
No files found.
lib/gitlab/config/entry/undefined.rb
View file @
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
...
...
spec/lib/gitlab/config/entry/undefined_spec.rb
View file @
2e901677
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment