Commit 4c6cb3cf authored by Shinya Maeda's avatar Shinya Maeda

Fix Stream#file? duplicates. And the spec

parent b525b416
...@@ -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
......
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment