diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-11-20 12:03:50 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-11-20 12:03:50 +0400 |
commit | 3bab1bd4c162239dcf582a82360cf94d4953ef69 (patch) | |
tree | 8fa6edb9dd9ebc7dbf40dfe59abf9b0fb4251831 /spec/requests/api/files_spec.rb | |
parent | 33eae33423d224e10a3a9aeefd70d632d70b20fe (diff) |
Improve consistency: use file_path for API create/update/delete files
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec/requests/api/files_spec.rb')
-rw-r--r-- | spec/requests/api/files_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/files_spec.rb b/spec/requests/api/files_spec.rb index 0e2a48689ac..2d1f8df47dd 100644 --- a/spec/requests/api/files_spec.rb +++ b/spec/requests/api/files_spec.rb @@ -12,7 +12,7 @@ describe API::API do describe "POST /projects/:id/repository/files" do let(:valid_params) { { - file_name: 'newfile.rb', + file_path: 'newfile.rb', branch_name: 'master', content: 'puts 8', commit_message: 'Added newfile' @@ -26,7 +26,7 @@ describe API::API do post api("/projects/#{project.id}/repository/files", user), valid_params response.status.should == 201 - json_response['file_name'].should == 'newfile.rb' + json_response['file_path'].should == 'newfile.rb' end it "should return a 400 bad request if no params given" do |