Commit d40e8a95 authored by Shinya Maeda's avatar Shinya Maeda

Fix name of http_io_spec.rb. static analysys.

parent 95c33d35
...@@ -9,7 +9,7 @@ module EE ...@@ -9,7 +9,7 @@ module EE
prepended do prepended do
after_destroy :log_geo_event after_destroy :log_geo_event
scope :with_files_stored_locally, -> { where(file_store: [nil, JobArtifactUploader::Store::LOCAL]) } scope :with_files_stored_locally, -> { where(file_store: [nil, ::JobArtifactUploader::Store::LOCAL]) }
end end
def local_store? def local_store?
......
...@@ -21,7 +21,7 @@ describe Gitlab::Ci::Trace::HttpIO do ...@@ -21,7 +21,7 @@ describe Gitlab::Ci::Trace::HttpIO do
it 'HttpIO covers core interfaces in IO' do it 'HttpIO covers core interfaces in IO' do
expected_interfaces = ::IO.instance_methods(false) expected_interfaces = ::IO.instance_methods(false)
expected_interfaces = expected_interfaces - EXCEPT_METHODS expected_interfaces -= EXCEPT_METHODS
expect(expected_interfaces - described_class.instance_methods).to be_empty expect(expected_interfaces - described_class.instance_methods).to be_empty
end end
...@@ -62,10 +62,10 @@ describe Gitlab::Ci::Trace::HttpIO do ...@@ -62,10 +62,10 @@ describe Gitlab::Ci::Trace::HttpIO do
end end
context 'when moves pos to middle of the file' do context 'when moves pos to middle of the file' do
let(:pos) { size/2 } let(:pos) { size / 2 }
let(:where) { IO::SEEK_SET } let(:where) { IO::SEEK_SET }
it { is_expected.to eq(size/2) } it { is_expected.to eq(size / 2) }
end end
context 'when moves pos around' do context 'when moves pos around' do
...@@ -278,8 +278,8 @@ describe Gitlab::Ci::Trace::HttpIO do ...@@ -278,8 +278,8 @@ describe Gitlab::Ci::Trace::HttpIO do
before do before do
set_smaller_buffer_size_than(size) set_smaller_buffer_size_than(size)
http_io.seek(size/2) http_io.seek(size / 2)
string_io.seek(size/2) string_io.seek(size / 2)
end end
it 'reads from pos' do it 'reads from pos' do
......
...@@ -23,7 +23,7 @@ module HttpIOHelpers ...@@ -23,7 +23,7 @@ module HttpIOHelpers
} }
end end
def range_trace_body(from ,to) def range_trace_body(from, to)
remote_trace_body[from..to] remote_trace_body[from..to]
end end
......
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