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
86b17f77
Commit
86b17f77
authored
Mar 24, 2020
by
Lucas Charles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
De-duplicate GlRepository EE specs
Related to
https://gitlab.com/gitlab-org/gitlab/-/issues/211887
parent
52284c1d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
22 deletions
+17
-22
.rubocop.yml
.rubocop.yml
+0
-1
ee/spec/lib/ee/gitlab/gl_repository_spec.rb
ee/spec/lib/ee/gitlab/gl_repository_spec.rb
+17
-1
ee/spec/lib/gitlab/gl_repository_spec.rb
ee/spec/lib/gitlab/gl_repository_spec.rb
+0
-20
No files found.
.rubocop.yml
View file @
86b17f77
...
...
@@ -213,7 +213,6 @@ Gitlab/DuplicateSpecLocation:
-
ee/spec/services/merge_requests/update_service_spec.rb
-
ee/spec/services/system_hooks_service_spec.rb
-
ee/spec/helpers/ee/auth_helper_spec.rb
-
ee/spec/lib/ee/gitlab/gl_repository_spec.rb
-
ee/spec/models/ee/namespace_spec.rb
-
ee/spec/models/ee/note_spec.rb
-
ee/spec/serializers/ee/environment_entity_spec.rb
...
...
ee/spec/lib/ee/gitlab/gl_repository_spec.rb
View file @
86b17f77
# frozen_string_literal: true
require
'spec_helper'
describe
::
EE
::
Gitlab
::
GlRepository
do
describe
Gitlab
::
GlRepository
do
describe
"DESIGN"
do
it
"uses the design access checker"
do
expect
(
described_class
::
DESIGN
.
access_checker_class
).
to
eq
(
::
Gitlab
::
GitAccessDesign
)
...
...
@@ -12,4 +12,20 @@ describe ::EE::Gitlab::GlRepository do
.
to
be_a
(
::
DesignManagement
::
Repository
)
end
end
describe
'.parse'
do
let_it_be
(
:project
)
{
create
(
:project
,
:repository
)
}
it
'parses a design gl_repository'
do
expect
(
described_class
.
parse
(
"design-
#{
project
.
id
}
"
)).
to
eq
([
project
,
project
,
EE
::
Gitlab
::
GlRepository
::
DESIGN
])
end
end
describe
'.types'
do
it
'contains both the EE and CE repository types'
do
expected_types
=
Gitlab
::
GlRepository
::
TYPES
.
merge
(
EE
::
Gitlab
::
GlRepository
::
EE_TYPES
)
expect
(
described_class
.
types
).
to
eq
(
expected_types
)
end
end
end
ee/spec/lib/gitlab/gl_repository_spec.rb
deleted
100644 → 0
View file @
52284c1d
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
GlRepository
do
describe
'.parse'
do
let_it_be
(
:project
)
{
create
(
:project
,
:repository
)
}
it
'parses a design gl_repository'
do
expect
(
described_class
.
parse
(
"design-
#{
project
.
id
}
"
)).
to
eq
([
project
,
project
,
EE
::
Gitlab
::
GlRepository
::
DESIGN
])
end
end
describe
'.types'
do
it
'contains both the EE and CE repository types'
do
expected_types
=
Gitlab
::
GlRepository
::
TYPES
.
merge
(
EE
::
Gitlab
::
GlRepository
::
EE_TYPES
)
expect
(
described_class
.
types
).
to
eq
(
expected_types
)
end
end
end
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