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
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
spec/lib/gitlab/oauth/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