diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-16 18:41:54 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-24 18:55:01 +0300 |
commit | c927bc3ffa11c4b6033eb8d65f33c511f3207552 (patch) | |
tree | 1fbf0d4bb89916c60233a608c7c36eecda1bb970 /spec/requests/api/files_spec.rb | |
parent | faa2e2df8fb95655ebfb8523689295e223005d9d (diff) |
Fix specs
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 a8ce0430401..29d67b5259e 100644 --- a/spec/requests/api/files_spec.rb +++ b/spec/requests/api/files_spec.rb @@ -127,7 +127,7 @@ describe API::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 api("/projects/#{project.id}/repository/files", user), valid_params @@ -215,7 +215,7 @@ describe API::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 api("/projects/#{project.id}/repository/files", user), valid_params |