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
49d124f8
Commit
49d124f8
authored
Aug 12, 2020
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary user mocks
parent
4577f7af
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
spec/lib/banzai/filter/gollum_tags_filter_spec.rb
spec/lib/banzai/filter/gollum_tags_filter_spec.rb
+1
-2
spec/lib/banzai/filter/wiki_link_filter_spec.rb
spec/lib/banzai/filter/wiki_link_filter_spec.rb
+1
-2
spec/lib/banzai/pipeline/wiki_pipeline_spec.rb
spec/lib/banzai/pipeline/wiki_pipeline_spec.rb
+1
-1
No files found.
spec/lib/banzai/filter/gollum_tags_filter_spec.rb
View file @
49d124f8
...
...
@@ -6,8 +6,7 @@ RSpec.describe Banzai::Filter::GollumTagsFilter do
include
FilterSpecHelper
let
(
:project
)
{
create
(
:project
)
}
let
(
:user
)
{
double
}
let
(
:wiki
)
{
ProjectWiki
.
new
(
project
,
user
)
}
let
(
:wiki
)
{
ProjectWiki
.
new
(
project
,
nil
)
}
describe
'validation'
do
it
'ensure that a :wiki key exists in context'
do
...
...
spec/lib/banzai/filter/wiki_link_filter_spec.rb
View file @
49d124f8
...
...
@@ -7,8 +7,7 @@ RSpec.describe Banzai::Filter::WikiLinkFilter do
let
(
:namespace
)
{
build_stubbed
(
:namespace
,
name:
"wiki_link_ns"
)
}
let
(
:project
)
{
build_stubbed
(
:project
,
:public
,
name:
"wiki_link_project"
,
namespace:
namespace
)
}
let
(
:user
)
{
double
}
let
(
:wiki
)
{
ProjectWiki
.
new
(
project
,
user
)
}
let
(
:wiki
)
{
ProjectWiki
.
new
(
project
,
nil
)
}
let
(
:repository_upload_folder
)
{
Wikis
::
CreateAttachmentService
::
ATTACHMENT_PATH
}
it
"doesn't rewrite absolute links"
do
...
...
spec/lib/banzai/pipeline/wiki_pipeline_spec.rb
View file @
49d124f8
...
...
@@ -5,7 +5,7 @@ require 'spec_helper'
RSpec
.
describe
Banzai
::
Pipeline
::
WikiPipeline
do
let_it_be
(
:namespace
)
{
create
(
:namespace
,
name:
"wiki_link_ns"
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:public
,
name:
"wiki_link_project"
,
namespace:
namespace
)
}
let_it_be
(
:wiki
)
{
ProjectWiki
.
new
(
project
,
double
(
:user
)
)
}
let_it_be
(
:wiki
)
{
ProjectWiki
.
new
(
project
,
nil
)
}
let_it_be
(
:page
)
{
build
(
:wiki_page
,
wiki:
wiki
,
title:
'nested/twice/start-page'
)
}
describe
'TableOfContents'
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