This commit is contained in:
Shinya Maeda 2017-07-03 22:13:10 +09:00
parent 621f9307ff
commit 3acc91866b
3 changed files with 6 additions and 1 deletions

View File

@ -130,9 +130,9 @@ pipeline_schedules:
- owner
- pipelines
- last_pipeline
- variables
pipeline_schedule:
- pipelines
- variables
pipeline_schedule_variables:
- pipeline_schedule
deploy_keys:

View File

@ -1379,6 +1379,7 @@ describe Ci::Build, :models do
end
before do
pipeline_schedule.reload
pipeline_schedule.pipelines << pipeline
end

View File

@ -127,6 +127,10 @@ describe Ci::PipelineSchedule, models: true do
subject { pipeline_schedule.job_variables }
before do
pipeline_schedule.reload
end
it { is_expected.to eq(pipeline_schedule_variables.map(&:to_runner_variable)) }
end
end