diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-03-07 15:03:43 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-03-07 15:03:43 +0300 |
commit | 001a28d04203feac77840b90024b769b442130b2 (patch) | |
tree | e49bb337cfb36c7518bf78cdbb41b6d1faae731f /spec | |
parent | 4a341c6d3ca38b99458b8ed5e723c3a189ba267b (diff) | |
parent | 30b76e4b2917da49f67137cc1f52cf622d060396 (diff) |
Merge branch 'dz-plugins-project-integrations' into 'master'
Show plugins list on system hooks page
Closes #40812
See merge request gitlab-org/gitlab-ce!17518
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/admin/admin_hooks_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/features/admin/admin_hooks_spec.rb b/spec/features/admin/admin_hooks_spec.rb index f266f2ecc54..25ed3bdc88e 100644 --- a/spec/features/admin/admin_hooks_spec.rb +++ b/spec/features/admin/admin_hooks_spec.rb @@ -24,6 +24,16 @@ describe 'Admin::Hooks' do visit admin_hooks_path expect(page).to have_content(system_hook.url) end + + it 'renders plugins list as well' do + allow(Gitlab::Plugin).to receive(:files).and_return(['foo.rb', 'bar.clj']) + + visit admin_hooks_path + + expect(page).to have_content('Plugins') + expect(page).to have_content('foo.rb') + expect(page).to have_content('bar.clj') + end end describe 'New Hook' do |