Skip to content
Snippets Groups Projects
Commit 328e1680 authored by Andrew McCallum's avatar Andrew McCallum
Browse files

Add scenario of searching within context of repository with root slash to tests.

parent e5afb44a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -668,6 +668,11 @@ describe Repository do
expect(results.first).to eq('files/html/500.html')
end
 
it 'ignores root slash' do
result = repository.search_files_by_name('/files', 'master')
expect(results.first).to eq('files/html/500.html')
end
it 'properly handles when query is not present' do
results = repository.search_files_by_name('', 'master')
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment