Add failing test for #14360
This commit is contained in:
parent
c61ebedaee
commit
0e3f7927d5
1 changed files with 4 additions and 0 deletions
|
@ -32,6 +32,10 @@ describe SearchHelper do
|
|||
expect(search_autocomplete_opts("adm").size).to eq(1)
|
||||
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
|
||||
create(:group).add_owner(user)
|
||||
expect(search_autocomplete_opts("gro").size).to eq(1)
|
||||
|
|
Loading…
Reference in a new issue