diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-08-09 16:41:45 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-08-09 16:41:45 +0300 |
commit | 412db1874fbf2847ad9d84e9d2344d4c4d4b9fef (patch) | |
tree | 24b39366555209a0db724d9b4eb49fff4fe2e620 /spec/factories/deployments.rb | |
parent | a85eed6446fa0b4b899a71cb9a3cb5e011a41c3a (diff) |
Fix some tests and report the error message
Diffstat (limited to 'spec/factories/deployments.rb')
-rw-r--r-- | spec/factories/deployments.rb | 4 |
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 |