diff options
Diffstat (limited to 'spec/features/projects/services/user_activates_pivotaltracker_spec.rb')
-rw-r--r-- | spec/features/projects/services/user_activates_pivotaltracker_spec.rb | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/spec/features/projects/services/user_activates_pivotaltracker_spec.rb b/spec/features/projects/services/user_activates_pivotaltracker_spec.rb index 67ff99c0295..c81c5081867 100644 --- a/spec/features/projects/services/user_activates_pivotaltracker_spec.rb +++ b/spec/features/projects/services/user_activates_pivotaltracker_spec.rb @@ -3,22 +3,17 @@ require 'spec_helper' describe 'User activates PivotalTracker' do - let(:project) { create(:project) } - let(:user) { create(:user) } + include_context 'project service activation' before do - project.add_maintainer(user) - sign_in(user) - - visit(project_settings_integrations_path(project)) - - click_link('PivotalTracker') + stub_request(:post, /.*www.pivotaltracker.com.*/) end - it 'activates service' do - check('Active') + it 'activates service', :js do + visit_project_integration('PivotalTracker') fill_in('Token', with: 'verySecret') - click_button('Save') + + click_test_integration expect(page).to have_content('PivotalTracker activated.') end |