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
e256ab91
Commit
e256ab91
authored
Sep 22, 2020
by
Peter Leitzen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Speed up banzai external issue reference filter specs
parent
9e72553a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
spec/lib/banzai/filter/external_issue_reference_filter_spec.rb
...lib/banzai/filter/external_issue_reference_filter_spec.rb
+6
-4
No files found.
spec/lib/banzai/filter/external_issue_reference_filter_spec.rb
View file @
e256ab91
...
...
@@ -5,6 +5,8 @@ require 'spec_helper'
RSpec
.
describe
Banzai
::
Filter
::
ExternalIssueReferenceFilter
do
include
FilterSpecHelper
let_it_be_with_refind
(
:project
)
{
create
(
:project
)
}
shared_examples_for
"external issue tracker"
do
it_behaves_like
'a reference containing an element node'
...
...
@@ -116,7 +118,7 @@ RSpec.describe Banzai::Filter::ExternalIssueReferenceFilter do
end
context
"redmine project"
do
let
(
:project
)
{
create
(
:redmine_
project
)
}
let
_it_be
(
:service
)
{
create
(
:redmine_service
,
project:
project
)
}
before
do
project
.
update!
(
issues_enabled:
false
)
...
...
@@ -138,7 +140,7 @@ RSpec.describe Banzai::Filter::ExternalIssueReferenceFilter do
end
context
"youtrack project"
do
let
(
:project
)
{
create
(
:youtrack_
project
)
}
let
_it_be
(
:service
)
{
create
(
:youtrack_service
,
project:
project
)
}
before
do
project
.
update!
(
issues_enabled:
false
)
...
...
@@ -181,7 +183,7 @@ RSpec.describe Banzai::Filter::ExternalIssueReferenceFilter do
end
context
"jira project"
do
let
(
:project
)
{
create
(
:jira_
project
)
}
let
_it_be
(
:service
)
{
create
(
:jira_service
,
project:
project
)
}
let
(
:reference
)
{
issue
.
to_reference
}
context
"with right markdown"
do
...
...
@@ -210,7 +212,7 @@ RSpec.describe Banzai::Filter::ExternalIssueReferenceFilter do
end
context
"ewm project"
do
let_it_be
(
:
project
)
{
create
(
:ewm_
project
)
}
let_it_be
(
:
service
)
{
create
(
:ewm_service
,
project:
project
)
}
before
do
project
.
update!
(
issues_enabled:
false
)
...
...
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