summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-08-24 21:09:53 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-08-24 21:09:53 +0800
commita79cd2a275893635d9ee719495fbb33aa7649497 (patch)
tree409274f218b0323212658f65a0768d746e480340
parentc6f09f4d88b0fcd11d8b8c2b4fdd48d0c7e3cd61 (diff)
downloadgitlab-ce-a79cd2a275893635d9ee719495fbb33aa7649497.tar.gz
No longer needed
-rw-r--r--spec/models/build_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/models/build_spec.rb b/spec/models/build_spec.rb
index f63183f5df1..ee2c3d04984 100644
--- a/spec/models/build_spec.rb
+++ b/spec/models/build_spec.rb
@@ -275,8 +275,7 @@ describe Ci::Build, models: true do
context 'when yaml_variables are undefined' do
before do
- build.update(yaml_variables: nil)
- build.reload # reload pipeline so that it resets config_processor
+ build.yaml_variables = nil
end
context 'use from gitlab-ci.yml' do
@@ -902,8 +901,7 @@ describe Ci::Build, models: true do
context 'when `when` is undefined' do
before do
- build.update(when: nil)
- build.reload # reload pipeline so that it resets config_processor
+ build.when = nil
end
context 'use from gitlab-ci.yml' do