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
589fd93d
Commit
589fd93d
authored
Dec 27, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rubocop offenses in serializer entities
parent
8e603b62
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
app/serializers/stage_entity.rb
app/serializers/stage_entity.rb
+2
-1
spec/serializers/request_aware_entity_spec.rb
spec/serializers/request_aware_entity_spec.rb
+1
-1
No files found.
app/serializers/stage_entity.rb
View file @
589fd93d
...
@@ -7,7 +7,8 @@ class StageEntity < Grape::Entity
...
@@ -7,7 +7,8 @@ class StageEntity < Grape::Entity
"
#{
stage
.
name
}
:
#{
detailed_status
.
label
}
"
"
#{
stage
.
name
}
:
#{
detailed_status
.
label
}
"
end
end
expose
:detailed_status
,
as: :status
,
expose
:detailed_status
,
as: :status
,
with:
StatusEntity
with:
StatusEntity
expose
:path
do
|
stage
|
expose
:path
do
|
stage
|
...
...
spec/serializers/request_aware_entity_spec.rb
View file @
589fd93d
...
@@ -15,7 +15,7 @@ describe RequestAwareEntity do
...
@@ -15,7 +15,7 @@ describe RequestAwareEntity do
it
'fetches request from options'
do
it
'fetches request from options'
do
expect
(
subject
).
to
receive
(
:options
)
expect
(
subject
).
to
receive
(
:options
)
.
and_return
({
request:
'some value'
})
.
and_return
({
request:
'some value'
})
expect
(
subject
.
request
).
to
eq
'some value'
expect
(
subject
.
request
).
to
eq
'some value'
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