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
Léo-Paul Géneau
gitlab-ce
Commits
615e4968
Commit
615e4968
authored
Apr 15, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change user_spec to pass postgres
parent
c7b825fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/models/user_spec.rb
spec/models/user_spec.rb
+4
-4
No files found.
spec/models/user_spec.rb
View file @
615e4968
...
...
@@ -120,7 +120,7 @@ describe User do
end
it
{
@user
.
several_namespaces?
.
should
be_true
}
it
{
@user
.
namespaces
.
should
==
[
@user
.
namespace
,
@group
]
}
it
{
@user
.
namespaces
.
should
include
(
@user
.
namespace
,
@group
)
}
it
{
@user
.
authorized_groups
.
should
==
[
@group
]
}
it
{
@user
.
owned_groups
.
should
==
[
@group
]
}
end
...
...
@@ -155,8 +155,8 @@ describe User do
it
{
User
.
filter
(
"admins"
).
should
==
[
@admin
]
}
it
{
User
.
filter
(
"blocked"
).
should
==
[
@blocked
]
}
it
{
User
.
filter
(
"wop"
).
should
==
[
@user
,
@admin
,
@blocked
]
}
it
{
User
.
filter
(
nil
).
should
==
[
@user
,
@admin
]
}
it
{
User
.
filter
(
"wop"
).
should
include
(
@user
,
@admin
,
@blocked
)
}
it
{
User
.
filter
(
nil
).
should
include
(
@user
,
@admin
)
}
end
describe
:not_in_project
do
...
...
@@ -166,7 +166,7 @@ describe User do
@project
=
create
:project
end
it
{
User
.
not_in_project
(
@project
).
should
==
[
@user
,
@project
.
owner
]
}
it
{
User
.
not_in_project
(
@project
).
should
include
(
@user
,
@project
.
owner
)
}
end
describe
'normal user'
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