diff options
author | Matt Coleman <matt@datto.com> | 2017-09-21 16:05:44 -0400 |
---|---|---|
committer | Matt Coleman <matt@datto.com> | 2017-10-13 13:42:53 -0400 |
commit | c207122fd2b4439ff8303a1860c35de658d6bdfb (patch) | |
tree | e4eb0e289ea4170fdc56715ab5af8a0c596279ed /spec/features/projects/services | |
parent | a854431c6f08386f1a265c524f7dfdba4c59368a (diff) | |
download | gitlab-ce-c207122fd2b4439ff8303a1860c35de658d6bdfb.tar.gz |
Add Packagist project service
Diffstat (limited to 'spec/features/projects/services')
-rw-r--r-- | spec/features/projects/services/user_activates_packagist_spec.rb | 24 | ||||
-rw-r--r-- | spec/features/projects/services/user_views_services_spec.rb | 1 |
2 files changed, 25 insertions, 0 deletions
diff --git a/spec/features/projects/services/user_activates_packagist_spec.rb b/spec/features/projects/services/user_activates_packagist_spec.rb new file mode 100644 index 00000000000..b0cc818f093 --- /dev/null +++ b/spec/features/projects/services/user_activates_packagist_spec.rb @@ -0,0 +1,24 @@ +require 'spec_helper' + +describe 'User activates Packagist' do + let(:project) { create(:project) } + let(:user) { create(:user) } + + before do + project.add_master(user) + sign_in(user) + + visit(project_settings_integrations_path(project)) + + click_link('Packagist') + end + + it 'activates service' do + check('Active') + fill_in('Username', with: 'theUser') + fill_in('Token', with: 'verySecret') + click_button('Save') + + expect(page).to have_content('Packagist activated.') + end +end diff --git a/spec/features/projects/services/user_views_services_spec.rb b/spec/features/projects/services/user_views_services_spec.rb index f86591c2633..5c5e8b66642 100644 --- a/spec/features/projects/services/user_views_services_spec.rb +++ b/spec/features/projects/services/user_views_services_spec.rb @@ -21,5 +21,6 @@ describe 'User views services' do expect(page).to have_content('JetBrains TeamCity') expect(page).to have_content('Asana') expect(page).to have_content('Irker (IRC gateway)') + expect(page).to have_content('Packagist') end end |