debian-mirror-gitlab/spec/features/projects/services/user_activates_pushover_spec.rb

28 lines
631 B
Ruby
Raw Normal View History

2018-03-17 18:26:18 +05:30
require 'spec_helper'
describe 'User activates Pushover' do
let(:project) { create(:project) }
let(:user) { create(:user) }
before do
2018-11-18 11:00:15 +05:30
project.add_maintainer(user)
2018-03-17 18:26:18 +05:30
sign_in(user)
visit(project_settings_integrations_path(project))
click_link('Pushover')
end
it 'activates service' do
check('Active')
fill_in('Api key', with: 'verySecret')
fill_in('User key', with: 'verySecret')
fill_in('Device', with: 'myDevice')
select('High Priority', from: 'Priority')
select('Bike', from: 'Sound')
click_button('Save')
expect(page).to have_content('Pushover activated.')
end
end