summaryrefslogtreecommitdiff
path: root/spec/models/ci/build_trace_chunk_spec.rb
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-05-04 17:42:37 +0900
committerShinya Maeda <shinya@gitlab.com>2018-05-04 17:42:37 +0900
commit28284c14973a59d5a7f0f8d2862da7f61b101640 (patch)
treed02e69af1e2992e578c17f4ca335987cb7fa0c03 /spec/models/ci/build_trace_chunk_spec.rb
parent812dd06d512ab7774b375ce45aa9235aafc99911 (diff)
downloadgitlab-ce-28284c14973a59d5a7f0f8d2862da7f61b101640.tar.gz
Add validation and skip logic at #truncate
Diffstat (limited to 'spec/models/ci/build_trace_chunk_spec.rb')
-rw-r--r--spec/models/ci/build_trace_chunk_spec.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/spec/models/ci/build_trace_chunk_spec.rb b/spec/models/ci/build_trace_chunk_spec.rb
index 118b72da11c..46d09dff52c 100644
--- a/spec/models/ci/build_trace_chunk_spec.rb
+++ b/spec/models/ci/build_trace_chunk_spec.rb
@@ -141,11 +141,7 @@ describe Ci::BuildTraceChunk, :clean_gitlab_redis_shared_state do
context 'when offset is bigger than data size' do
let(:offset) { data.bytesize + 1 }
- it do
- expect_any_instance_of(described_class).not_to receive(:append) { }
-
- subject
- end
+ it { expect { subject }.to raise_error('Offset is out of range') }
end
context 'when offset is 10' do