Remove last playlists and tracks from home
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
describe HomeController do
|
||||
include UserControllerHelpers
|
||||
|
||||
before { sign_in }
|
||||
|
||||
describe 'GET index' do
|
||||
it 'assigns all playlists as @playlists' do
|
||||
playlist = FactoryGirl.create(:playlist)
|
||||
get :index
|
||||
expect(assigns[:playlists]).to eq [playlist]
|
||||
end
|
||||
|
||||
it 'assigns latest tracks as @tracks' do
|
||||
FactoryGirl.create(:track, created_at: '2011-07-27 19:13:42')
|
||||
FactoryGirl.create(:track, created_at: '2011-07-27 19:58:57')
|
||||
get :index
|
||||
expect(assigns[:tracks]).to eq Track.latest
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user