Commit 3acc9186 authored by Shinya Maeda's avatar Shinya Maeda

Fix spec

parent 621f9307
...@@ -130,9 +130,9 @@ pipeline_schedules: ...@@ -130,9 +130,9 @@ pipeline_schedules:
- owner - owner
- pipelines - pipelines
- last_pipeline - last_pipeline
- variables
pipeline_schedule: pipeline_schedule:
- pipelines - pipelines
- variables
pipeline_schedule_variables: pipeline_schedule_variables:
- pipeline_schedule - pipeline_schedule
deploy_keys: deploy_keys:
......
...@@ -1379,6 +1379,7 @@ describe Ci::Build, :models do ...@@ -1379,6 +1379,7 @@ describe Ci::Build, :models do
end end
before do before do
pipeline_schedule.reload
pipeline_schedule.pipelines << pipeline pipeline_schedule.pipelines << pipeline
end end
......
...@@ -127,6 +127,10 @@ describe Ci::PipelineSchedule, models: true do ...@@ -127,6 +127,10 @@ describe Ci::PipelineSchedule, models: true do
subject { pipeline_schedule.job_variables } subject { pipeline_schedule.job_variables }
before do
pipeline_schedule.reload
end
it { is_expected.to eq(pipeline_schedule_variables.map(&:to_runner_variable)) } it { is_expected.to eq(pipeline_schedule_variables.map(&:to_runner_variable)) }
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