Reload pipeline to make sure it's updated

This commit is contained in:
Lin Jen-Shin 2017-04-07 01:29:11 +08:00
parent a39ff617f8
commit 4f435c6c3a
1 changed files with 4 additions and 1 deletions

View File

@ -462,7 +462,10 @@ describe Ci::ProcessPipelineService, '#execute', :services do
builds.find_by(name: name).play(user) builds.find_by(name: name).play(user)
end end
delegate :manual_actions, to: :pipeline def manual_actions
pipeline.reload
pipeline.manual_actions
end
def create_build(name, **opts) def create_build(name, **opts)
create(:ci_build, :created, pipeline: pipeline, name: name, **opts) create(:ci_build, :created, pipeline: pipeline, name: name, **opts)