Fix environments specs for deployment with SHA
This commit is contained in:
parent
022764cc76
commit
536210603f
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue