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