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
f9bb6cce
Commit
f9bb6cce
authored
Jul 24, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `match_array` rather than `eq` in ProjectsFinder spec
parent
c2c8d7ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/finders/admin/projects_finder_spec.rb
spec/finders/admin/projects_finder_spec.rb
+4
-4
No files found.
spec/finders/admin/projects_finder_spec.rb
View file @
f9bb6cce
...
@@ -31,11 +31,11 @@ describe Admin::ProjectsFinder do
...
@@ -31,11 +31,11 @@ describe Admin::ProjectsFinder do
context
'without a user'
do
context
'without a user'
do
let
(
:current_user
)
{
nil
}
let
(
:current_user
)
{
nil
}
it
{
is_expected
.
to
eq
([
shared_project
,
public_project
,
internal_project
,
private_project
])
}
it
{
is_expected
.
to
match_array
([
shared_project
,
public_project
,
internal_project
,
private_project
])
}
end
end
context
'with a user'
do
context
'with a user'
do
it
{
is_expected
.
to
eq
([
shared_project
,
public_project
,
internal_project
,
private_project
])
}
it
{
is_expected
.
to
match_array
([
shared_project
,
public_project
,
internal_project
,
private_project
])
}
end
end
context
'filter by namespace_id'
do
context
'filter by namespace_id'
do
...
@@ -54,7 +54,7 @@ describe Admin::ProjectsFinder do
...
@@ -54,7 +54,7 @@ describe Admin::ProjectsFinder do
context
'private'
do
context
'private'
do
let
(
:params
)
{
{
visibility_level:
Gitlab
::
VisibilityLevel
::
PRIVATE
}
}
let
(
:params
)
{
{
visibility_level:
Gitlab
::
VisibilityLevel
::
PRIVATE
}
}
it
{
is_expected
.
to
eq
([
shared_project
,
private_project
])
}
it
{
is_expected
.
to
match_array
([
shared_project
,
private_project
])
}
end
end
context
'internal'
do
context
'internal'
do
...
@@ -124,7 +124,7 @@ describe Admin::ProjectsFinder do
...
@@ -124,7 +124,7 @@ describe Admin::ProjectsFinder do
context
'filter by name'
do
context
'filter by name'
do
let
(
:params
)
{
{
name:
'C'
}
}
let
(
:params
)
{
{
name:
'C'
}
}
it
{
is_expected
.
to
eq
([
shared_project
,
public_project
,
private_project
])
}
it
{
is_expected
.
to
match_array
([
shared_project
,
public_project
,
private_project
])
}
end
end
context
'sorting'
do
context
'sorting'
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