Commit 46fc5599 authored by Shinya Maeda's avatar Shinya Maeda Committed by Alessio Caiazza

Add feature flag spec for process_build_service

parent 8bc065e0
...@@ -204,6 +204,20 @@ describe Ci::ProcessBuildService, '#execute' do ...@@ -204,6 +204,20 @@ describe Ci::ProcessBuildService, '#execute' do
allow(Ci::BuildScheduleWorker).to receive(:perform_at) { } allow(Ci::BuildScheduleWorker).to receive(:perform_at) { }
end end
it_behaves_like 'Scheduling properly', %w[success skipped] context 'when ci_enable_scheduled_build is enabled' do
before do
stub_feature_flags(ci_enable_scheduled_build: true)
end
it_behaves_like 'Scheduling properly', %w[success skipped]
end
context 'when ci_enable_scheduled_build is enabled' do
before do
stub_feature_flags(ci_enable_scheduled_build: false)
end
it_behaves_like 'Actionizing properly', %w[success skipped]
end
end end
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