blob: 4a4d7bbecfdddc186d39e7f9e5fd27072ef0b73a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'User activates Flowdock' do
include_context 'project service activation' do
let(:project) { create(:project, :repository) }
end
before do
stub_request(:post, /.*api.flowdock.com.*/)
end
it 'activates service', :js do
visit_project_integration('Flowdock')
fill_in('Token', with: 'verySecret')
click_test_then_save_integration(expect_test_to_fail: false)
expect(page).to have_content('Flowdock settings saved and active.')
end
end
|