summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-11-09 13:16:21 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-11-09 14:08:07 +0100
commitae8a461d875b29d7492230df1a3ca419707e154d (patch)
tree8c5a58e18298740744ce8934e770807a744a2247
parentf7ef7bea11012bef6d373ce3b3c43fac08b047fd (diff)
downloadgitlab-ce-ae8a461d875b29d7492230df1a3ca419707e154d.tar.gz
Fix environment feature specs after changes in factory
-rw-r--r--spec/features/environments_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/features/environments_spec.rb b/spec/features/environments_spec.rb
index b565586ee14..10ca835e6ca 100644
--- a/spec/features/environments_spec.rb
+++ b/spec/features/environments_spec.rb
@@ -152,7 +152,9 @@ feature 'Environments', feature: true do
end
context 'with deployments' do
- given(:deployment) { create(:deployment, environment: environment) }
+ given(:deployment) do
+ create(:deployment, environment: environment, deployable: nil)
+ end
scenario 'does show deployment SHA' do
expect(page).to have_link(deployment.short_sha)