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
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe TracksController do
|
||||
before do
|
||||
controller.current_user = Factory.create(:user)
|
||||
end
|
||||
|
||||
describe 'GET show' do
|
||||
it 'assigns the requested track as @track' do
|
||||
track = Factory.create(:track)
|
||||
|
Reference in New Issue
Block a user