Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
fbf599e3
Commit
fbf599e3
authored
Apr 10, 2018
by
Yorick Peterse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust two EE specs to use Banzai::RenderContext
parent
470f3c18
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
ee/lib/banzai/filter/cross_project_issuable_information_filter.rb
...anzai/filter/cross_project_issuable_information_filter.rb
+2
-1
ee/spec/lib/banzai/reference_parser/epic_parser_spec.rb
ee/spec/lib/banzai/reference_parser/epic_parser_spec.rb
+1
-1
No files found.
ee/lib/banzai/filter/cross_project_issuable_information_filter.rb
View file @
fbf599e3
...
...
@@ -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
|
...
...
ee/spec/lib/banzai/reference_parser/epic_parser_spec.rb
View file @
fbf599e3
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment