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/user_activates_packagist_spec.rb | |
parent | a854431c6f08386f1a265c524f7dfdba4c59368a (diff) | |
download | gitlab-ce-c207122fd2b4439ff8303a1860c35de658d6bdfb.tar.gz |
Add Packagist project service
Diffstat (limited to 'spec/features/projects/services/user_activates_packagist_spec.rb')
-rw-r--r-- | spec/features/projects/services/user_activates_packagist_spec.rb | 24 |
1 files changed, 24 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 |