Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
0e3f7927
Commit
0e3f7927
authored
Sep 07, 2016
by
winniehell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add failing test for #14360
parent
c61ebeda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
spec/helpers/search_helper_spec.rb
spec/helpers/search_helper_spec.rb
+4
-0
No files found.
spec/helpers/search_helper_spec.rb
View file @
0e3f7927
...
@@ -32,6 +32,10 @@ describe SearchHelper do
...
@@ -32,6 +32,10 @@ describe SearchHelper do
expect
(
search_autocomplete_opts
(
"adm"
).
size
).
to
eq
(
1
)
expect
(
search_autocomplete_opts
(
"adm"
).
size
).
to
eq
(
1
)
end
end
it
"does not allow regular expression in search term"
do
expect
(
search_autocomplete_opts
(
"(webhooks|api)"
).
size
).
to
eq
(
0
)
end
it
"includes the user's groups"
do
it
"includes the user's groups"
do
create
(
:group
).
add_owner
(
user
)
create
(
:group
).
add_owner
(
user
)
expect
(
search_autocomplete_opts
(
"gro"
).
size
).
to
eq
(
1
)
expect
(
search_autocomplete_opts
(
"gro"
).
size
).
to
eq
(
1
)
...
...
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