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
bea05839
Commit
bea05839
authored
Jun 24, 2012
by
Jakub Troszok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added tests for automatic password generation.
parent
56dbfd2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
user_spec.rb
spec/models/user_spec.rb
+6
-0
No files found.
spec/models/user_spec.rb
View file @
bea05839
...
...
@@ -22,6 +22,12 @@ describe User do
user
.
identifier
.
should
==
"test_mail_com"
end
it
"should generate password when password is empty"
do
user
=
User
.
create
(
:email
=>
"test1@mail.com"
)
user
.
password
.
should
eql
(
user
.
password_confirmation
)
user
.
password
.
should_not
be_empty
end
it
"should have authentication token"
do
user
=
Factory
(
:user
)
user
.
authentication_token
.
should_not
==
""
...
...
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