summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-05-18 17:03:12 -0500
committerRobert Speicher <rspeicher@gmail.com>2016-05-18 17:03:12 -0500
commitce3958ebae0332ddc295c7fe234b6a8af6f25da8 (patch)
treef69d84c342333ef72297a6b778022e73f6db378c /spec
parent57fde5a83e717db861b025193fdf04e9f087e148 (diff)
downloadgitlab-ce-ce3958ebae0332ddc295c7fe234b6a8af6f25da8.tar.gz
Use extended regexp flag for `git grep`-ing filesrs-issue-3055
Closes #3055
Diffstat (limited to 'spec')
-rw-r--r--spec/models/repository_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/repository_spec.rb b/spec/models/repository_spec.rb
index 34a13f9b5c9..7c94f3639d4 100644
--- a/spec/models/repository_spec.rb
+++ b/spec/models/repository_spec.rb
@@ -100,6 +100,12 @@ describe Repository, models: true do
expect(results.first).not_to start_with('fatal:')
end
+ it 'properly handles an unmatched parenthesis' do
+ results = repository.search_files("test(", 'master')
+
+ expect(results.first).not_to start_with('fatal:')
+ end
+
describe 'result' do
subject { results.first }