Add failing test for #14360

This commit is contained in:
winniehell 2016-09-07 13:40:14 +02:00
parent c61ebedaee
commit 0e3f7927d5

View file

@ -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)