Commit f82d6c18 authored by Filipa Lacerda's avatar Filipa Lacerda Committed by Kamil Trzcinski

Updates failing test

parent 34a98085
......@@ -179,8 +179,8 @@ feature 'Environments', feature: true do
context 'when logged as master' do
given(:role) { :master }
scenario 'does delete environment' do
click_link 'Destroy'
scenario 'does close environment' do
click_link 'Close'
expect(page).not_to have_link(environment.name)
end
end
......@@ -188,8 +188,8 @@ feature 'Environments', feature: true do
context 'when logged as developer' do
given(:role) { :developer }
scenario 'does not have a Destroy link' do
expect(page).not_to have_link('Destroy')
scenario 'does not have a Close link' do
expect(page).not_to have_link('Close')
end
end
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