2019-07-25 05:24:42 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-22 04:42:52 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2021-07-29 21:10:10 +00:00
|
|
|
RSpec.describe 'User activates irker (IRC gateway)' do
|
2020-04-06 09:09:17 +00:00
|
|
|
include_context 'project service activation'
|
2017-09-22 04:42:52 +00:00
|
|
|
|
2020-04-06 09:09:17 +00:00
|
|
|
it 'activates service', :js do
|
2021-07-29 21:10:10 +00:00
|
|
|
visit_project_integration('irker (IRC gateway)')
|
2017-09-22 04:42:52 +00:00
|
|
|
check('Colorize messages')
|
|
|
|
fill_in('Recipients', with: 'irc://chat.freenode.net/#commits')
|
2020-04-06 09:09:17 +00:00
|
|
|
|
2020-09-15 18:09:43 +00:00
|
|
|
click_test_then_save_integration(expect_test_to_fail: false)
|
2017-09-22 04:42:52 +00:00
|
|
|
|
2021-07-29 21:10:10 +00:00
|
|
|
expect(page).to have_content('irker (IRC gateway) settings saved and active.')
|
2017-09-22 04:42:52 +00:00
|
|
|
end
|
|
|
|
end
|