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
946e8d3a
Commit
946e8d3a
authored
Aug 25, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use only/except policy that returns an array
parent
a061a246
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
lib/gitlab/ci/config/entry/policy.rb
lib/gitlab/ci/config/entry/policy.rb
+0
-4
spec/lib/gitlab/ci/config/entry/policy_spec.rb
spec/lib/gitlab/ci/config/entry/policy_spec.rb
+1
-1
No files found.
lib/gitlab/ci/config/entry/policy.rb
View file @
946e8d3a
...
@@ -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
...
...
spec/lib/gitlab/ci/config/entry/policy_spec.rb
View file @
946e8d3a
...
@@ -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
...
...
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