diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-04-06 20:29:11 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-04-06 20:29:11 +0300 |
commit | 4f435c6c3a641d7c3dd826c316d5372fdbfd2161 (patch) | |
tree | 018db752809efe7905ca10c8d17c87aa6a073d2c /spec/services/ci | |
parent | a39ff617f80c003244d2400b384b4e857fad7f6e (diff) |
Reload pipeline to make sure it's updated
Diffstat (limited to 'spec/services/ci')
-rw-r--r-- | spec/services/ci/process_pipeline_service_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/services/ci/process_pipeline_service_spec.rb b/spec/services/ci/process_pipeline_service_spec.rb index bb98fb37a90..d7df6c5c22e 100644 --- a/spec/services/ci/process_pipeline_service_spec.rb +++ b/spec/services/ci/process_pipeline_service_spec.rb @@ -462,7 +462,10 @@ describe Ci::ProcessPipelineService, '#execute', :services do builds.find_by(name: name).play(user) end - delegate :manual_actions, to: :pipeline + def manual_actions + pipeline.reload + pipeline.manual_actions + end def create_build(name, **opts) create(:ci_build, :created, pipeline: pipeline, name: name, **opts) |