diff options
author | Dimitrie Hoekstra <dimitrie@gitlab.com> | 2017-01-05 19:58:15 +0000 |
---|---|---|
committer | Dimitrie Hoekstra <dimitrie@gitlab.com> | 2017-01-05 19:58:15 +0000 |
commit | bd1e0c7e7bac7d32cd8e97f79abd1c9eb32a2e71 (patch) | |
tree | 09b56bc502da82afa8c1656fe44493338157f317 /spec/requests/api/commits_spec.rb | |
parent | c1daa7d177eef223cb54c4185343f0fb9a1c04e2 (diff) | |
parent | 4a1a06f4c6a9fe21504258ac3c1b007853bfd98b (diff) | |
download | gitlab-ce-bd1e0c7e7bac7d32cd8e97f79abd1c9eb32a2e71.tar.gz |
Merge branch 'master' into '26207-add-hover-animations'
# Conflicts:
# app/assets/stylesheets/framework/variables.scss
Diffstat (limited to 'spec/requests/api/commits_spec.rb')
-rw-r--r-- | spec/requests/api/commits_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/requests/api/commits_spec.rb b/spec/requests/api/commits_spec.rb index 964cded917c..7f8ea5251f0 100644 --- a/spec/requests/api/commits_spec.rb +++ b/spec/requests/api/commits_spec.rb @@ -146,6 +146,16 @@ describe API::Commits, api: true do expect(response).to have_http_status(400) end + + context 'with project path in URL' do + let(:url) { "/projects/#{project.namespace.path}%2F#{project.path}/repository/commits" } + + it 'a new file in project repo' do + post api(url, user), valid_c_params + + expect(response).to have_http_status(201) + end + end end context :delete do |