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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
e5df86f5
Commit
e5df86f5
authored
May 01, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rubocop offense in environments policy class
parent
4f2cc595
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
app/policies/environment_policy.rb
app/policies/environment_policy.rb
+0
-1
spec/models/ci/build_spec.rb
spec/models/ci/build_spec.rb
+1
-1
No files found.
app/policies/environment_policy.rb
View file @
e5df86f5
class
EnvironmentPolicy
<
BasePolicy
alias_method
:environment
,
:subject
def
rules
...
...
spec/models/ci/build_spec.rb
View file @
e5df86f5
...
...
@@ -911,7 +911,7 @@ describe Ci::Build, :models do
it
{
is_expected
.
to
eq
(
environment
)
}
end
context
'when
referenced with a variable'
do
context
'when referenced with a variable'
do
let
(
:build
)
do
create
(
:ci_build
,
pipeline:
pipeline
,
environment:
"foo-$CI_COMMIT_REF_NAME"
)
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