2019-07-25 05:24:42 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-22 04:42:52 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'User activates Emails on push' do
|
|
|
|
let(:project) { create(:project) }
|
|
|
|
let(:user) { create(:user) }
|
|
|
|
|
|
|
|
before do
|
2018-07-11 14:36:08 +00:00
|
|
|
project.add_maintainer(user)
|
2017-09-22 04:42:52 +00:00
|
|
|
sign_in(user)
|
|
|
|
|
|
|
|
visit(project_settings_integrations_path(project))
|
|
|
|
|
|
|
|
click_link('Emails on push')
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'activates service' do
|
|
|
|
check('Active')
|
|
|
|
fill_in('Recipients', with: 'qa@company.name')
|
|
|
|
click_button('Save')
|
|
|
|
|
|
|
|
expect(page).to have_content('Emails on push activated.')
|
|
|
|
end
|
|
|
|
end
|