Commit d770b633 authored by Phil Hughes's avatar Phil Hughes

fixed spec/features/projects/settings/repository_settings_spec.rb

parent 54a6bcae
......@@ -34,7 +34,6 @@ feature 'Repository settings' do
visit project_settings_repository_path(project)
expect(page.status_code).to eq(200)
expect(page).to have_content('private_deploy_key')
expect(page).to have_content('public_deploy_key')
end
......@@ -86,7 +85,7 @@ feature 'Repository settings' do
project.deploy_keys << private_deploy_key
visit project_settings_repository_path(project)
find('li', text: private_deploy_key.title).click_button('Remove')
accept_confirm { find('li', text: private_deploy_key.title).click_button('Remove') }
expect(page).not_to have_content(private_deploy_key.title)
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