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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
95197ee3
Commit
95197ee3
authored
Mar 22, 2017
by
Jarka Kadlecova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove not necessary specs
parent
74459e0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
8 deletions
+0
-8
spec/models/project_spec.rb
spec/models/project_spec.rb
+0
-4
spec/models/route_spec.rb
spec/models/route_spec.rb
+0
-4
No files found.
spec/models/project_spec.rb
View file @
95197ee3
...
@@ -1767,10 +1767,6 @@ describe Project, models: true do
...
@@ -1767,10 +1767,6 @@ describe Project, models: true do
let!
(
:project3
)
{
create
(
:empty_project
,
namespace:
create
(
:namespace
,
path:
'namespace'
))
}
let!
(
:project3
)
{
create
(
:empty_project
,
namespace:
create
(
:namespace
,
path:
'namespace'
))
}
let!
(
:path
)
{
project1
.
namespace
.
full_path
}
let!
(
:path
)
{
project1
.
namespace
.
full_path
}
it
'returns 1 project'
do
expect
(
Project
.
inside_path
(
path
).
count
).
to
eq
(
1
)
end
it
'returns correct project'
do
it
'returns correct project'
do
expect
(
Project
.
inside_path
(
path
)).
to
eq
([
project1
])
expect
(
Project
.
inside_path
(
path
)).
to
eq
([
project1
])
end
end
...
...
spec/models/route_spec.rb
View file @
95197ee3
...
@@ -21,10 +21,6 @@ describe Route, models: true do
...
@@ -21,10 +21,6 @@ describe Route, models: true do
let!
(
:similar_group
)
{
create
(
:group
,
path:
'gitllab'
)
}
let!
(
:similar_group
)
{
create
(
:group
,
path:
'gitllab'
)
}
let!
(
:another_group_nested
)
{
create
(
:group
,
path:
'another'
,
name:
'another'
,
parent:
similar_group
)
}
let!
(
:another_group_nested
)
{
create
(
:group
,
path:
'another'
,
name:
'another'
,
parent:
similar_group
)
}
it
'returns 2 routes'
do
expect
(
Route
.
inside_path
(
'git_lab'
).
count
).
to
eq
(
2
)
end
it
'returns correct routes'
do
it
'returns correct routes'
do
expect
(
Route
.
inside_path
(
'git_lab'
)).
to
match_array
([
nested_group
.
route
,
deep_nested_group
.
route
])
expect
(
Route
.
inside_path
(
'git_lab'
)).
to
match_array
([
nested_group
.
route
,
deep_nested_group
.
route
])
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