[Rails5] Fix "'-1' is not a valid data_store"

Part of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/19882
This commit is contained in:
blackst0ne 2018-06-16 13:16:48 +11:00
parent a76066d7fa
commit a4f9ef7d79
2 changed files with 5 additions and 8 deletions

View File

@ -0,0 +1,5 @@
---
title: '[Rails5] Fix "-1 is not a valid data_store"'
merge_request: 19917
author: "@blackst0ne"
type: fixed

View File

@ -125,14 +125,6 @@ describe Ci::BuildTraceChunk, :clean_gitlab_redis_shared_state do
end
end
end
context 'when data_store is others' do
before do
build_trace_chunk.send(:write_attribute, :data_store, -1)
end
it { expect { subject }.to raise_error('Unsupported data store') }
end
end
describe '#truncate' do