BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
0ec4abf7
Commit
0ec4abf7
authored
Sep 01, 2014
by
Jan-Willem van der Meer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use local vars for tests
parent
0c34fa3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
user_spec.rb
spec/lib/gitlab/oauth/user_spec.rb
+6
-6
No files found.
spec/lib/gitlab/oauth/user_spec.rb
View file @
0ec4abf7
...
...
@@ -31,8 +31,8 @@ describe Gitlab::OAuth::User do
describe
:create
do
it
"should create user from LDAP"
do
@
auth
=
double
(
info:
info
,
provider:
'ldap'
)
user
=
gl_auth
.
create
(
@
auth
)
auth
=
double
(
info:
info
,
provider:
'ldap'
)
user
=
gl_auth
.
create
(
auth
)
user
.
should
be_valid
user
.
extern_uid
.
should
==
info
.
uid
...
...
@@ -40,8 +40,8 @@ describe Gitlab::OAuth::User do
end
it
"should create user from Omniauth"
do
@
auth
=
double
(
info:
info
,
provider:
'twitter'
)
user
=
gl_auth
.
create
(
@
auth
)
auth
=
double
(
info:
info
,
provider:
'twitter'
)
user
=
gl_auth
.
create
(
auth
)
user
.
should
be_valid
user
.
extern_uid
.
should
==
info
.
uid
...
...
@@ -49,8 +49,8 @@ describe Gitlab::OAuth::User do
end
it
"should apply defaults to user"
do
@
auth
=
double
(
info:
info
,
provider:
'ldap'
)
user
=
gl_auth
.
create
(
@
auth
)
auth
=
double
(
info:
info
,
provider:
'ldap'
)
user
=
gl_auth
.
create
(
auth
)
user
.
should
be_valid
user
.
projects_limit
.
should
==
Gitlab
.
config
.
gitlab
.
default_projects_limit
...
...
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