summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAndrew McCallum <andrew.mccallum@semafone.com>2018-01-16 09:40:51 +0000
committerAndrew McCallum <andrew.mccallum@semafone.com>2018-01-16 09:40:51 +0000
commitb1cf3225dbb6b897a8be405d599714b74cbfb547 (patch)
tree97c02388bb402395eeaade84279a6bda6f3dafb4 /spec
parenta539e03d7e4f12cfaa3ae7998dd111f498f4c8dc (diff)
downloadgitlab-ce-b1cf3225dbb6b897a8be405d599714b74cbfb547.tar.gz
Move Regexp.escape(), fix formatting on tests.
Diffstat (limited to 'spec')
-rw-r--r--spec/models/repository_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/repository_spec.rb b/spec/models/repository_spec.rb
index 6767d818009..d9395ca61d7 100644
--- a/spec/models/repository_spec.rb
+++ b/spec/models/repository_spec.rb
@@ -675,9 +675,9 @@ describe Repository do
end
it 'properly handles when query is only slashes' do
- results = repository.search_files_by_name('//', 'master')
+ results = repository.search_files_by_name('//', 'master')
- expect(results).to match_array([])
+ expect(results).to match_array([])
end
it 'properly handles when query is not present' do