summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-07-03 22:13:10 +0900
committerShinya Maeda <shinya@gitlab.com>2017-07-05 18:36:19 +0900
commit17f34e5a74cdfbf37e45b3db603cffb8035c8db4 (patch)
tree4fe7a29fd8f5a108c8fbe5a83a51d2641bac1ca1 /spec/models
parentc99f8e8884d98bacb2d6f157a8265cbc05df73a3 (diff)
downloadgitlab-ce-17f34e5a74cdfbf37e45b3db603cffb8035c8db4.tar.gz
Fix spec
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/ci/build_spec.rb1
-rw-r--r--spec/models/ci/pipeline_schedule_spec.rb4
2 files changed, 5 insertions, 0 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb
index 66784607835..5271b6660c8 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -1383,6 +1383,7 @@ describe Ci::Build, :models do
end
before do
+ pipeline_schedule.reload
pipeline_schedule.pipelines << pipeline
end
diff --git a/spec/models/ci/pipeline_schedule_spec.rb b/spec/models/ci/pipeline_schedule_spec.rb
index 2f826a91417..34722ef1a69 100644
--- a/spec/models/ci/pipeline_schedule_spec.rb
+++ b/spec/models/ci/pipeline_schedule_spec.rb
@@ -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