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

This commit is contained in:
Shinya Maeda 2018-06-15 17:20:25 +09:00
parent fb08183e63
commit 242039e4e1

View file

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