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

Fix URL for deleting branches

parent 930ca2d5
...@@ -88,7 +88,7 @@ module BitbucketServer ...@@ -88,7 +88,7 @@ module BitbucketServer
def delete_url(resource, path) def delete_url(resource, path)
if resource == :branches if resource == :branches
"#{base_uri}/branch-utils/#{api_version}#{path}" "#{base_uri}/rest/branch-utils/#{api_version}#{path}"
else else
build_url(path) build_url(path)
end end
......
...@@ -39,7 +39,7 @@ describe BitbucketServer::Connection do ...@@ -39,7 +39,7 @@ describe BitbucketServer::Connection do
describe '#delete' do describe '#delete' do
context 'branch API' do context 'branch API' do
let(:branch_path) { '/projects/foo/repos/bar/branches' } 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) { } let(:path) { }
it 'returns JSON body' do 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