diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-07-04 01:51:21 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-07-05 18:36:19 +0900 |
commit | bbbd5521d2d177561efd6f8171394abef6ec90ff (patch) | |
tree | 1ee3957e02bc5d06cc68c97a0b6f6a13003b5836 /spec/models | |
parent | 17f34e5a74cdfbf37e45b3db603cffb8035c8db4 (diff) | |
download | gitlab-ce-bbbd5521d2d177561efd6f8171394abef6ec90ff.tar.gz |
Improve spec
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/ci/build_spec.rb | 2 | ||||
-rw-r--r-- | spec/models/ci/pipeline_schedule_spec.rb | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb index 5271b6660c8..211356f415a 100644 --- a/spec/models/ci/build_spec.rb +++ b/spec/models/ci/build_spec.rb @@ -1383,8 +1383,8 @@ describe Ci::Build, :models do end before do - pipeline_schedule.reload pipeline_schedule.pipelines << pipeline + pipeline_schedule.reload end it { is_expected.to include(pipeline_schedule_variable.to_runner_variable) } diff --git a/spec/models/ci/pipeline_schedule_spec.rb b/spec/models/ci/pipeline_schedule_spec.rb index 34722ef1a69..54177bee5ce 100644 --- a/spec/models/ci/pipeline_schedule_spec.rb +++ b/spec/models/ci/pipeline_schedule_spec.rb @@ -121,6 +121,7 @@ describe Ci::PipelineSchedule, models: true do describe '#job_variables' do let!(:pipeline_schedule) { create(:ci_pipeline_schedule, :nightly) } + let!(:pipeline_schedule_variables) do create_list(:ci_pipeline_schedule_variable, 2, pipeline_schedule: pipeline_schedule) end |