diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-07-01 19:23:41 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-07-05 18:38:35 +0900 |
commit | 324cfe0f9be8bd8eeb00736a670d3aaf4b5dedb9 (patch) | |
tree | e8ef1ed2aa340fc67cef2b44e03af3679cbe94b6 /spec | |
parent | 5e7db4e36c46f5807d7b486baf90c18dd1a5805f (diff) | |
download | gitlab-ce-324cfe0f9be8bd8eeb00736a670d3aaf4b5dedb9.tar.gz |
Fix spec. Add PipelineScheduleVariable for import_export
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/import_export/all_models.yml | 2 | ||||
-rw-r--r-- | spec/models/ci/build_spec.rb | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/spec/lib/gitlab/import_export/all_models.yml b/spec/lib/gitlab/import_export/all_models.yml index 0b2e2b335c4..40ae0a1846b 100644 --- a/spec/lib/gitlab/import_export/all_models.yml +++ b/spec/lib/gitlab/import_export/all_models.yml @@ -130,9 +130,9 @@ pipeline_schedules: - owner - pipelines - last_pipeline -- variables pipeline_schedule: - pipelines +- pipeline_schedule_variables pipeline_schedule_variables: - pipeline_schedule deploy_keys: diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb index 8750cbcb13c..a4f29ce462f 100644 --- a/spec/models/ci/build_spec.rb +++ b/spec/models/ci/build_spec.rb @@ -1371,8 +1371,10 @@ describe Ci::Build, :models do context 'when a job was triggered by a pipeline schedule' do let(:pipeline_schedule) { create(:ci_pipeline_schedule, project: project) } + let!(:pipeline_schedule_variable) do - create(:ci_pipeline_schedule_variable, key: 'SCHEDULE_VARIABLE_KEY', + create(:ci_pipeline_schedule_variable, + key: 'SCHEDULE_VARIABLE_KEY', pipeline_schedule: pipeline_schedule) end |