Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-08-01 11:56:12 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2018-08-01 13:25:19 +0300
commitc944e22d5087a87680737717ef2c6588320de64e (patch)
treea5732af55ac24554dcbac1ba208ddc5521450fef /app/models
parent8fe37da6cb648b73e618861b9672eb0cf34247d0 (diff)
Fix spec failures
Diffstat (limited to 'app/models')
-rw-r--r--app/models/ci/build.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index db5ad300a12..93bbee49c09 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -580,12 +580,12 @@ module Ci
end
def has_valid_build_dependencies?
- return true unless Feature.enabled?('ci_disable_validates_dependencies')
+ return true if Feature.enabled?('ci_disable_validates_dependencies')
- dependencies.all?(&:is_valid_dependency?)
+ dependencies.all?(&:valid_dependency?)
end
- def is_valid_dependency?
+ def valid_dependency?
return false if artifacts_expired?
return false if erased?