Commit 9d59616b authored by Stan Hu's avatar Stan Hu

Fix URL for deleting branches

parent 930ca2d5
......@@ -88,7 +88,7 @@ module BitbucketServer
def delete_url(resource, path)
if resource == :branches
"#{base_uri}/branch-utils/#{api_version}#{path}"
"#{base_uri}/rest/branch-utils/#{api_version}#{path}"
else
build_url(path)
end
......
......@@ -39,7 +39,7 @@ describe BitbucketServer::Connection do
describe '#delete' do
context 'branch API' do
let(:branch_path) { '/projects/foo/repos/bar/branches' }
let(:branch_url) { 'https://test:7990/branch-utils/1.0/projects/foo/repos/bar/branches' }
let(:branch_url) { 'https://test:7990/rest/branch-utils/1.0/projects/foo/repos/bar/branches' }
let(:path) { }
it 'returns JSON body' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment