gitlab-org--gitlab-foss/spec/features/projects/integrations/user_activates_packagist_sp...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
499 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
2017-09-21 20:05:44 +00:00
require 'spec_helper'
RSpec.describe 'User activates Packagist' do
include_context 'project integration activation'
2017-09-21 20:05:44 +00:00
before do
stub_request(:post, /.*packagist.org.*/)
2017-09-21 20:05:44 +00:00
end
it 'activates integration', :js do
visit_project_integration('Packagist')
2017-09-21 20:05:44 +00:00
fill_in('Username', with: 'theUser')
fill_in('Token', with: 'verySecret')
click_test_then_save_integration
2017-09-21 20:05:44 +00:00
expect(page).to have_content('Packagist settings saved and active.')
2017-09-21 20:05:44 +00:00
end
end