BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
a061a246
Commit
a061a246
authored
Aug 25, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CI/CD trigger policy default value
parent
87346078
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
policy.rb
lib/gitlab/ci/config/entry/policy.rb
+3
-0
policy_spec.rb
spec/lib/gitlab/ci/config/entry/policy_spec.rb
+6
-0
No files found.
lib/gitlab/ci/config/entry/policy.rb
View file @
a061a246
...
...
@@ -44,6 +44,9 @@ module Gitlab
[
'policy has to be either an array of conditions or a hash'
]
end
end
def
self
.
default
end
end
end
end
...
...
spec/lib/gitlab/ci/config/entry/policy_spec.rb
View file @
a061a246
...
...
@@ -84,4 +84,10 @@ describe Gitlab::Ci::Config::Entry::Policy do
.
to
include
'policy has to be either an array of conditions or a hash'
end
end
describe
'.default'
do
it
'does not have a default value'
do
expect
(
described_class
.
default
).
to
be_nil
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