diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-23 13:00:16 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-24 09:55:01 -0600 |
commit | 5bbd09ca8ad15ad0033353c8e7b9f0bfda96f44d (patch) | |
tree | aac2fdde3cfe5791e5abf2a1bc4fcca96d80311f | |
parent | c927bc3ffa11c4b6033eb8d65f33c511f3207552 (diff) | |
download | gitlab-ce-5bbd09ca8ad15ad0033353c8e7b9f0bfda96f44d.tar.gz |
Fix spec
-rw-r--r-- | spec/requests/api/v3/files_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/v3/files_spec.rb b/spec/requests/api/v3/files_spec.rb index 4af05605ec6..52fd908af7d 100644 --- a/spec/requests/api/v3/files_spec.rb +++ b/spec/requests/api/v3/files_spec.rb @@ -127,7 +127,7 @@ describe API::V3::Files, api: true do end it "returns a 400 if editor fails to create file" do - allow_any_instance_of(Repository).to receive(:commit_file). + allow_any_instance_of(Repository).to receive(:create_file). and_return(false) post v3_api("/projects/#{project.id}/repository/files", user), valid_params @@ -215,7 +215,7 @@ describe API::V3::Files, api: true do end it "returns a 400 if fails to create file" do - allow_any_instance_of(Repository).to receive(:remove_file).and_return(false) + allow_any_instance_of(Repository).to receive(:delete_file).and_return(false) delete v3_api("/projects/#{project.id}/repository/files", user), valid_params |