diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-11-07 16:31:04 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-11-07 16:31:04 +0900 |
commit | 14cdde72a7f6159560abd25a290bff671608082c (patch) | |
tree | 4c519c59aacfc1397f99ba4a83ca83f6731fda31 /spec | |
parent | 9a0aa653e396d1fae1e22b23add18fd0d98ee753 (diff) | |
download | gitlab-ce-14cdde72a7f6159560abd25a290bff671608082c.tar.gz |
Fix spec
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/environment_status_spec.rb | 2 |
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 |