diff options
author | Marc Siegfriedt <marc@techaccelerator.com> | 2017-08-22 00:09:45 +0300 |
---|---|---|
committer | Marc Siegfriedt <marc@techaccelerator.com> | 2017-08-30 21:37:44 +0300 |
commit | f3b6c552f6763e20bbccaa80e306d939d6cf602c (patch) | |
tree | f9ee24039aa1d6c2f7d22db4df2a8494b81e5c75 /spec/requests/api/files_spec.rb | |
parent | d540d43e2d1dd20f81a736aab99f9d073a83e82a (diff) |
fix :file_path - add requirements:
Diffstat (limited to 'spec/requests/api/files_spec.rb')
-rw-r--r-- | spec/requests/api/files_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/requests/api/files_spec.rb b/spec/requests/api/files_spec.rb index ea97c556430..971eaf837cb 100644 --- a/spec/requests/api/files_spec.rb +++ b/spec/requests/api/files_spec.rb @@ -125,6 +125,15 @@ describe API::Files do expect(response).to have_http_status(200) end + it 'returns raw file info for files with dots' do + url = route('.gitignore') + "/raw" + expect(Gitlab::Workhorse).to receive(:send_git_blob) + + get api(url, current_user), params + + expect(response).to have_http_status(200) + end + it 'returns file by commit sha' do # This file is deleted on HEAD file_path = "files%2Fjs%2Fcommit%2Ejs%2Ecoffee" |