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:
authorLin Jen-Shin <godfat@godfat.org>2017-08-09 16:41:45 +0300
committerLin Jen-Shin <godfat@godfat.org>2017-08-09 16:41:45 +0300
commit412db1874fbf2847ad9d84e9d2344d4c4d4b9fef (patch)
tree24b39366555209a0db724d9b4eb49fff4fe2e620 /spec/factories/deployments.rb
parenta85eed6446fa0b4b899a71cb9a3cb5e011a41c3a (diff)
Fix some tests and report the error message
Diffstat (limited to 'spec/factories/deployments.rb')
-rw-r--r--spec/factories/deployments.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/deployments.rb b/spec/factories/deployments.rb
index 29ad1af9fd9..e5abfd67d60 100644
--- a/spec/factories/deployments.rb
+++ b/spec/factories/deployments.rb
@@ -10,6 +10,10 @@ FactoryGirl.define do
after(:build) do |deployment, evaluator|
deployment.project ||= deployment.environment.project
+
+ unless deployment.project.repository_exists?
+ allow(deployment.project.repository).to receive(:fetch_ref)
+ end
end
end
end