diff options
author | Stan Hu <stanhu@gmail.com> | 2018-07-19 09:15:24 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-07-19 09:15:24 +0300 |
commit | 9d59616b95889fc7f0f2ba84ba2c9d9de8205c71 (patch) | |
tree | a4ab110a1f8cd8c6f4eec514e5fd20be2e54da48 | |
parent | 930ca2d599802ae0983770311b641080f23f056d (diff) |
Fix URL for deleting branches
-rw-r--r-- | lib/bitbucket_server/connection.rb | 2 | ||||
-rw-r--r-- | spec/lib/bitbucket_server/connection_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bitbucket_server/connection.rb b/lib/bitbucket_server/connection.rb index 13bbc240c99..3918944aa81 100644 --- a/lib/bitbucket_server/connection.rb +++ b/lib/bitbucket_server/connection.rb @@ -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 diff --git a/spec/lib/bitbucket_server/connection_spec.rb b/spec/lib/bitbucket_server/connection_spec.rb index 65c78f14f58..4a421d062a3 100644 --- a/spec/lib/bitbucket_server/connection_spec.rb +++ b/spec/lib/bitbucket_server/connection_spec.rb @@ -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 |