92 Commits

Author SHA1 Message Date
Thibault Jouan
00eff9131a Fix a context definition in track specs 2011-09-22 21:36:11 +00:00
Thibault Jouan
15bce07e2f Remove "#sounds" spec for trak, duplicates with "have_many :sounds" spec 2011-09-22 21:36:06 +00:00
Thibault Jouan
ab1af50be6 Ensure related sound is created when saving a track with a file 2011-09-22 21:24:04 +00:00
Thibault Jouan
37735a354d Replace mock expectations with classic specs in tracks controller 2011-09-22 21:01:28 +00:00
Thibault Jouan
2d478352bd Improve some definitions in sounds controller specs 2011-09-22 20:27:50 +00:00
Thibault Jouan
d153755296 Add missing spec for "user has many playlists" association 2011-09-22 20:27:50 +00:00
Thibault Jouan
686162e270 Fix playlists controller specs for POST create action 2011-09-22 20:27:46 +00:00
Thibault Jouan
a8067404f4 Use rails configuration for sounds file path
* Add sounds_path initializer
2011-09-21 21:21:14 +00:00
Thibault Jouan
6af1540640 Bundle shoulda and use ActiveModel matchers in specs 2011-09-21 00:07:19 +00:00
Thibault Jouan
72f800397d Call mock_model with the class name instead of a string 2011-09-20 23:27:48 +00:00
Thibault Jouan
abb7b07c89 Refactor spec clean up 2011-09-20 23:19:28 +00:00
Thibault Jouan
27550fd14e Save track files in new Sound model:
* Consolidate migrations
* Add Sound model. Each sound can belong to a track and contains
  informations about one sound file.
2011-09-20 17:43:20 +00:00
Thibault Jouan
f49a5a3f67 Update to rails 3.1.0
* Bump rails version to 3.1.0 in Gemfile
* Update config files
* Fix bcrypt monkey patch for specs
* Fix TracksController
* Replace track streaming with track download
* Remove assets from application layout
2011-09-15 16:10:21 +00:00
Thibault Jouan
9a22c4bb94 Remove schema loading for each spec run in spec_helper 2011-09-14 17:40:56 +00:00
Thibault Jouan
639293e4ca Replace cucumber features by rails integration specs 2011-09-14 17:39:14 +00:00
Thibault Jouan
638d379ec6 Add validation on User password presence 2011-09-13 20:10:38 +00:00
Thibault Jouan
ceb6f18c01 Refactor factories ;-) 2011-09-08 23:40:36 +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
35b081ed68 Use a sequence for User email attribute 2011-09-08 23:09:25 +00:00
Thibault Jouan
1057cab009 Implement user registration feature
* Add users/new action and view
* Add users/create action
* Add link to sign up in sign in page
2011-09-07 18:36:06 +00:00
Thibault Jouan
547efbe7e1 Remove fixture_path from rspec configuration in spec_helper 2011-09-06 13:43:18 +00:00
Thibault Jouan
7350c1e17d Bundle and use spork to speed up specs by preloading rails env 2011-09-06 13:34:48 +00:00
Thibault Jouan
7187266982 Optimize execution duration for rspec specs
* Use in memory sqlite database for test environment
* Monkey patch BCrypt default cost factor
* Clean spec/spec_helper.rb
2011-09-05 16:24:37 +00:00
Thibault Jouan
7fad9e0402 Associate a user to his playlists 2011-08-30 16:53:47 +00:00
Thibault Jouan
4f66db2682 Refactor code related to authentication:
* User model
* SessionsController
2011-08-29 20:23:20 +00:00
Thibault Jouan
07c2b5f525 Remove extra attribute change in SessionsController POST create spec 2011-08-24 20:30:53 +00:00
Thibault Jouan
c023a071d0 Fix playlist/update action behaviour with invalid params 2011-08-24 20:27:30 +00:00
Thibault Jouan
7b2b594d7d Improve PlaylistsController POST create specs 2011-08-24 19:55:11 +00:00
Thibault Jouan
e015afed1d Refactor FactoryGirl calls to Factory 2011-08-24 19:16:49 +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
Thibault Jouan
46abe07268 Add latest added tracks list on the home page 2011-07-27 22:10:22 +00:00
Thibault Jouan
b39bc2d6da Add home page with playlists list and link to add a track 2011-07-27 19:40:30 +00:00
Thibault Jouan
03d0fb990c Remove spec/data dir, duplicate with spec/fixtures 2011-07-27 11:12:16 +00:00
Thibault Jouan
2f6a447416 Implement track/stream
* Add Streamer class
* Use FactoryGirl for factories
* Add sha256 field to tracks
* Add mime_type field to tracks
2011-07-26 16:59:47 +00:00
Thibault Jouan
47fa969617 Use factory_girl_rails for factories 2011-07-25 22:56:30 +00:00
Thibault Jouan
6af96b0f75 Add track/{new,create} with file upload for the track 2011-07-24 18:50:57 +00:00
Thibault Jouan
34b38b77cf Implement tracks/{show,listen} 2011-07-19 19:42:45 +00:00
Thibault Jouan
d35327e6f2 Fix uneeded double-quotes usage in Playlist specs 2011-07-13 18:38:10 +00:00
Thibault Jouan
301205d3f0 Implement playlist edit feature
* Display playlists as links in index
* Move playlist form in a partial
2011-07-13 17:52:27 +00:00
Thibault Jouan
33f979b573 Add basic playlists management
* Index of playlists
* Create a new playlist
* Basic playlist model with mandatory name
2011-07-12 00:32:06 +00:00
Thibault Jouan
6b337d3461 Bundle needed gems for BDD
* rspec
* cucumber
* capybara
* database_cleaner
2011-07-09 11:21:19 +00:00