This commit is contained in:
Shinya Maeda 2018-07-04 15:19:22 +09:00
parent 4c0c7ed32d
commit b025e89e08
2 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@ FactoryBot.define do
end end
after(:create) do |build_trace_chunk, evaluator| after(:create) do |build_trace_chunk, evaluator|
::Ci::BuildTraceChunk::Redis.new.set_data(build_trace_chunk, evaluator.initial_data) Ci::BuildTraceChunks::Redis.new.set_data(build_trace_chunk, evaluator.initial_data)
end end
end end
@ -28,7 +28,7 @@ FactoryBot.define do
end end
after(:build) do |build_trace_chunk, evaluator| after(:build) do |build_trace_chunk, evaluator|
::Ci::BuildTraceChunk::Database.new.set_data(build_trace_chunk, evaluator.initial_data) Ci::BuildTraceChunks::Database.new.set_data(build_trace_chunk, evaluator.initial_data)
end end
end end
@ -44,7 +44,7 @@ FactoryBot.define do
end end
after(:create) do |build_trace_chunk, evaluator| after(:create) do |build_trace_chunk, evaluator|
::Ci::BuildTraceChunk::Fog.new.set_data(build_trace_chunk, evaluator.initial_data) Ci::BuildTraceChunks::Fog.new.set_data(build_trace_chunk, evaluator.initial_data)
end end
end end

View file

@ -120,7 +120,7 @@ describe Ci::BuildTraceChunk, :clean_gitlab_redis_shared_state do
let(:new_data) { nil } let(:new_data) { nil }
it 'raises an error' do it 'raises an error' do
expect { subject }.to raise_error('New data is nil') expect { subject }.to raise_error('New data is missing')
end end
end end