summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-11-07 16:31:04 +0900
committerShinya Maeda <shinya@gitlab.com>2018-11-07 16:31:04 +0900
commit14cdde72a7f6159560abd25a290bff671608082c (patch)
tree4c519c59aacfc1397f99ba4a83ca83f6731fda31 /spec
parent9a0aa653e396d1fae1e22b23add18fd0d98ee753 (diff)
downloadgitlab-ce-14cdde72a7f6159560abd25a290bff671608082c.tar.gz
Fix spec
Diffstat (limited to 'spec')
-rw-r--r--spec/models/environment_status_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/environment_status_spec.rb b/spec/models/environment_status_spec.rb
index 9fc8c5c6357..db9ee204849 100644
--- a/spec/models/environment_status_spec.rb
+++ b/spec/models/environment_status_spec.rb
@@ -99,7 +99,7 @@ describe EnvironmentStatus do
let(:user) { project.owner }
before do
- build.deployment.update(sha: sha)
+ build.deployment&.update(sha: sha)
end
context 'when environment is created on a forked project' do