diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-11-16 20:33:00 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-11-16 20:33:00 +0100 |
commit | 536210603f2f6c8d4a27b802d69dcdf25dfd5456 (patch) | |
tree | c5d395966a8f717bc81c64df3e2ec47b8532f21b /spec | |
parent | 022764cc768ce7739eee1e097671249201cba5a4 (diff) | |
download | gitlab-ce-536210603f2f6c8d4a27b802d69dcdf25dfd5456.tar.gz |
Fix environments specs for deployment with SHA
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/environments_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/features/environments_spec.rb b/spec/features/environments_spec.rb index a9228283272..eca67de7bcb 100644 --- a/spec/features/environments_spec.rb +++ b/spec/features/environments_spec.rb @@ -56,10 +56,14 @@ feature 'Environments', feature: true, js: true do end context 'with deployments' do - given(:deployment) { create(:deployment, environment: environment) } + given(:project) { create(:project) } + + given(:deployment) do + create(:deployment, environment: environment, + sha: project.commit.id) + end scenario 'does show deployment SHA' do - # TODO: Fix me! expect(page).to have_link(deployment.short_sha) end |