Commit 23ea01f2 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'sh-fix-issue-8024' into 'master'

Fix failing spec for URL paths in issue_builder_spec.rb

Closes #8024

See merge request gitlab-org/gitlab-ee!7960
parents d7db7920 9f01f99c
...@@ -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