Commit a79cd2a2 authored by Lin Jen-Shin's avatar Lin Jen-Shin

No longer needed

parent c6f09f4d
...@@ -275,8 +275,7 @@ describe Ci::Build, models: true do ...@@ -275,8 +275,7 @@ describe Ci::Build, models: true do
context 'when yaml_variables are undefined' do context 'when yaml_variables are undefined' do
before do before do
build.update(yaml_variables: nil) build.yaml_variables = nil
build.reload # reload pipeline so that it resets config_processor
end end
context 'use from gitlab-ci.yml' do context 'use from gitlab-ci.yml' do
...@@ -902,8 +901,7 @@ describe Ci::Build, models: true do ...@@ -902,8 +901,7 @@ describe Ci::Build, models: true do
context 'when `when` is undefined' do context 'when `when` is undefined' do
before do before do
build.update(when: nil) build.when = nil
build.reload # reload pipeline so that it resets config_processor
end end
context 'use from gitlab-ci.yml' do context 'use from gitlab-ci.yml' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment