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
8019d28b
Commit
8019d28b
authored
Aug 24, 2020
by
charlie ablett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make label_finder_spec faster
parent
52f42de7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/lib/gitlab/github_import/label_finder_spec.rb
spec/lib/gitlab/github_import/label_finder_spec.rb
+4
-4
No files found.
spec/lib/gitlab/github_import/label_finder_spec.rb
View file @
8019d28b
...
...
@@ -3,10 +3,10 @@
require
'spec_helper'
RSpec
.
describe
Gitlab
::
GithubImport
::
LabelFinder
,
:clean_gitlab_redis_cache
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:finder
)
{
described_class
.
new
(
project
)
}
let
!
(
:bug
)
{
create
(
:label
,
project:
project
,
name:
'Bug'
)
}
let
!
(
:feature
)
{
create
(
:label
,
project:
project
,
name:
'Feature'
)
}
let
_it_be
(
:project
)
{
create
(
:project
)
}
let
_it_be
(
:finder
)
{
described_class
.
new
(
project
)
}
let
_it_be
(
:bug
)
{
create
(
:label
,
project:
project
,
name:
'Bug'
)
}
let
_it_be
(
:feature
)
{
create
(
:label
,
project:
project
,
name:
'Feature'
)
}
describe
'#id_for'
do
context
'with a cache in place'
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