BigW Consortium Gitlab

Commit 328e1680 by Andrew McCallum

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

parent e5afb44a
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment