diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-04-06 15:07:55 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-04-06 15:07:55 +0900 |
commit | 4c6cb3cf0665ff8fe558451907b948a57f07d390 (patch) | |
tree | 7e65860ede733645fdb1f404df909c97b1178688 | |
parent | b525b416c87f43fb046e7e445c0dbaeff8de6d25 (diff) | |
download | gitlab-ce-4c6cb3cf0665ff8fe558451907b948a57f07d390.tar.gz |
Fix Stream#file? duplicates. And the spec
-rw-r--r-- | lib/gitlab/ci/trace/stream.rb | 4 | ||||
-rw-r--r-- | spec/lib/gitlab/ci/trace/stream_spec.rb | 1 |
2 files changed, 0 insertions, 5 deletions
diff --git a/lib/gitlab/ci/trace/stream.rb b/lib/gitlab/ci/trace/stream.rb index 68919e317a1..bcdd4225ce7 100644 --- a/lib/gitlab/ci/trace/stream.rb +++ b/lib/gitlab/ci/trace/stream.rb @@ -25,10 +25,6 @@ module Gitlab self.path.present? end - def file? - self.path - end - def path self.stream.path if self.stream.respond_to?(:path) end diff --git a/spec/lib/gitlab/ci/trace/stream_spec.rb b/spec/lib/gitlab/ci/trace/stream_spec.rb index 70b7d667a4d..e940a075cfe 100644 --- a/spec/lib/gitlab/ci/trace/stream_spec.rb +++ b/spec/lib/gitlab/ci/trace/stream_spec.rb @@ -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(:truncate).to(:stream) } it { is_expected.to delegate_method(:valid?).to(:stream).as(:present?) } - it { is_expected.to delegate_method(:file?).to(:path).as(:present?) } end describe '#limit' do |