Commit 53621060 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix environments specs for deployment with SHA

parent 022764cc
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment