Commit 1e7df18e authored by Valery Sizov's avatar Valery Sizov

resolve markdown filters

parent 147c643f
......@@ -73,5 +73,13 @@ describe Gitlab::Markdown::ExternalIssueReferenceFilter, lib: true do
expect(link).to eq helper.url_for_issue("#{reference}", project, only_path: true)
end
it 'adds to the results hash' do
ext = JiraIssue.new(reference, project)
result = reference_pipeline_result("Issue #{reference}")
expect(result[:references][:external_issue]).not_to be_empty
expect(result[:references][:external_issue]).to eq [ext]
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