diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-09-04 14:06:12 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-09-04 14:06:12 +0300 |
commit | 4efdb451b59f550f7a86b39ff1328471233a9c38 (patch) | |
tree | da35788c5c073b725705c9f7c8f994fc1f723897 /spec/requests/api/files_spec.rb | |
parent | 25a443d65220cb76fab2c8123eca17f30c461a89 (diff) | |
parent | 6cdaa27a537662732cb089bdd3483d76a5a56a9a (diff) |
Merge branch 'move-git-operation-service' into 'master'
Move GitOperationService to Gitlab::Git
See merge request !13984
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 971eaf837cb..114019441a3 100644 --- a/spec/requests/api/files_spec.rb +++ b/spec/requests/api/files_spec.rb @@ -224,7 +224,7 @@ describe API::Files do it "returns a 400 if editor fails to create file" do allow_any_instance_of(Repository).to receive(:create_file) - .and_raise(Repository::CommitError, 'Cannot create file') + .and_raise(Gitlab::Git::CommitError, 'Cannot create file') post api(route("any%2Etxt"), user), valid_params @@ -339,7 +339,7 @@ describe API::Files do end it "returns a 400 if fails to delete file" do - allow_any_instance_of(Repository).to receive(:delete_file).and_raise(Repository::CommitError, 'Cannot delete file') + allow_any_instance_of(Repository).to receive(:delete_file).and_raise(Gitlab::Git::CommitError, 'Cannot delete file') delete api(route(file_path), user), valid_params |