Commit fbf599e3 authored by Yorick Peterse's avatar Yorick Peterse

Adjust two EE specs to use Banzai::RenderContext

parent 470f3c18
......@@ -9,7 +9,8 @@ module Banzai
def call
return doc if can_read_cross_project?
extractor = Banzai::IssuableExtractor.new(project, current_user)
context = Banzai::RenderContext.new(project, current_user)
extractor = Banzai::IssuableExtractor.new(context)
issuables = extractor.extract([doc])
issuables.each do |node, issuable|
......
......@@ -20,7 +20,7 @@ describe Banzai::ReferenceParser::EpicParser do
[link(public_epic.id), link(private_epic1.id), link(private_epic2.id)]
end
subject { described_class.new(nil, user) }
subject { described_class.new(Banzai::RenderContext.new(nil, user)) }
describe '#nodes_visible_to_user' do
before do
......
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