BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
30b76e4b
Unverified
Commit
30b76e4b
authored
Mar 06, 2018
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature test for plugins on system hooks page
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
674f8739
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
admin_hooks_spec.rb
spec/features/admin/admin_hooks_spec.rb
+10
-0
No files found.
spec/features/admin/admin_hooks_spec.rb
View file @
30b76e4b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment