Commit d57d97ba authored by Stan Hu's avatar Stan Hu

Fix failing spec for URL paths in issue_builder_spec.rb

The release-bot merged !7957 by accident, which broke master.

Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/8024
parent 3b0aa265
...@@ -45,7 +45,8 @@ describe Gitlab::HookData::IssueBuilder do ...@@ -45,7 +45,8 @@ describe Gitlab::HookData::IssueBuilder do
let(:builder) { described_class.new(issue_with_description) } let(:builder) { described_class.new(issue_with_description) }
it 'sets the image to use an absolute URL' do it 'sets the image to use an absolute URL' do
expect(data[:description]).to eq("test![Issue_Image](#{Settings.gitlab.url}/uploads/abc/Issue_Image.png)") expected_path = "#{issue_with_description.project.path_with_namespace}/uploads/abc/Issue_Image.png)"
expect(data[:description]).to eq("test![Issue_Image](#{Settings.gitlab.url}/#{expected_path}")
end end
end end
end end
......
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