diff --git a/common/spec/dependabot/pull_request_updater/github_spec.rb b/common/spec/dependabot/pull_request_updater/github_spec.rb index aa634fd018f..b5826b26dc7 100644 --- a/common/spec/dependabot/pull_request_updater/github_spec.rb +++ b/common/spec/dependabot/pull_request_updater/github_spec.rb @@ -52,7 +52,7 @@ let(:json_header) { { "Content-Type" => "application/json" } } let(:watched_repo_url) { "https://api.github.com/repos/#{source.repo}" } let(:pull_request_url) { watched_repo_url + "/pulls/#{pull_request_number}" } - let(:branch_url) { watched_repo_url + "/branches/" + branch_name } + let(:branch_url) { watched_repo_url + "/branches/" + CGI.escape(branch_name) } let(:business_repo_url) { "https://api.github.com/repos/gocardless/business" } let(:branch_name) { "dependabot/ruby/business-1.5.0" }