Thibault Jouan
d58c9ba0cb
Remove `should' usages in specs
2015-04-30 13:43:54 +00:00
Thibault Jouan
98764eb5be
Refactor spec_helper requirement with rspec config
2015-04-30 12:31:02 +00:00
Thibault Jouan
fae21e87d4
Fix rspec 2.99 deprecations
2015-04-29 13:06:44 +00:00
Thibault Jouan
4c6adc6927
Use new "strong parameters" from rails4
2014-04-03 02:20:37 +00:00
Thibault Jouan
0c7bf69ba2
Use one-liners in specs where possible
2014-04-01 18:55:42 +00:00
Thibault Jouan
4cef7aeab9
Update specs to new rspec syntax
2014-04-01 18:15:44 +00:00
Thibault Jouan
da96c4814a
Use ruby 2.x hash syntax
2014-04-01 10:48:18 +00:00
Thibault Jouan
eda2f3fbee
Update factory girl to last version
2014-04-01 05:04:27 +00:00
Thibault Jouan
5145717a3c
Specify models attributes that must not be mass assignated
2012-01-07 18:26:38 +00:00
Thibault Jouan
5e6781a656
Improve User specs about email uniqueness
2011-12-30 13:40:03 +00:00
Thibault Jouan
d153755296
Add missing spec for "user has many playlists" association
2011-09-22 20:27:50 +00:00
Thibault Jouan
6af1540640
Bundle shoulda and use ActiveModel matchers in specs
2011-09-21 00:07:19 +00:00
Thibault Jouan
638d379ec6
Add validation on User password presence
2011-09-13 20:10:38 +00:00
Thibault Jouan
688a178376
Validate uniqueness of user email address
...
* Make user.email attribute unique
* Render validations error messages in users/new view
2011-09-08 23:09:58 +00:00
Thibault Jouan
4f66db2682
Refactor code related to authentication:
...
* User model
* SessionsController
2011-08-29 20:23:20 +00:00
Thibault Jouan
1fc3be42de
Save user password as a bcrypt hash
...
* Replace password field by password_hash
* Add User#password attribute
* Implement password hashing and verification with BCrypt mixin
2011-08-09 17:04:47 +00:00
Thibault Jouan
7bf4d4c5f9
Add authentication and User model
...
* Add User model
* Add SessionsController
* Add password authentication on User
* Request authentication for all actions except sign in
* Add some helpers for ApplicationController
* Update features to work with mandatory authentication
2011-08-06 23:04:36 +00:00