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
4c6cb3cf
Commit
4c6cb3cf
authored
Apr 06, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Stream#file? duplicates. And the spec
parent
b525b416
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
+0
-5
lib/gitlab/ci/trace/stream.rb
lib/gitlab/ci/trace/stream.rb
+0
-4
spec/lib/gitlab/ci/trace/stream_spec.rb
spec/lib/gitlab/ci/trace/stream_spec.rb
+0
-1
No files found.
lib/gitlab/ci/trace/stream.rb
View file @
4c6cb3cf
...
@@ -25,10 +25,6 @@ module Gitlab
...
@@ -25,10 +25,6 @@ module Gitlab
self
.
path
.
present?
self
.
path
.
present?
end
end
def
file?
self
.
path
end
def
path
def
path
self
.
stream
.
path
if
self
.
stream
.
respond_to?
(
:path
)
self
.
stream
.
path
if
self
.
stream
.
respond_to?
(
:path
)
end
end
...
...
spec/lib/gitlab/ci/trace/stream_spec.rb
View file @
4c6cb3cf
...
@@ -17,7 +17,6 @@ describe Gitlab::Ci::Trace::Stream, :clean_gitlab_redis_cache do
...
@@ -17,7 +17,6 @@ describe Gitlab::Ci::Trace::Stream, :clean_gitlab_redis_cache do
it
{
is_expected
.
to
delegate_method
(
:path
).
to
(
:stream
)
}
it
{
is_expected
.
to
delegate_method
(
:path
).
to
(
:stream
)
}
it
{
is_expected
.
to
delegate_method
(
:truncate
).
to
(
:stream
)
}
it
{
is_expected
.
to
delegate_method
(
:truncate
).
to
(
:stream
)
}
it
{
is_expected
.
to
delegate_method
(
:valid?
).
to
(
:stream
).
as
(
:present?
)
}
it
{
is_expected
.
to
delegate_method
(
:valid?
).
to
(
:stream
).
as
(
:present?
)
}
it
{
is_expected
.
to
delegate_method
(
:file?
).
to
(
:path
).
as
(
:present?
)
}
end
end
describe
'#limit'
do
describe
'#limit'
do
...
...
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