Add latest added tracks list on the home page

This commit is contained in:
Thibault Jouan
2011-07-27 21:42:33 +00:00
parent b39bc2d6da
commit 46abe07268
8 changed files with 46 additions and 0 deletions

View File

@@ -5,6 +5,9 @@ describe 'home/index.html.haml' do
assign :playlists, [
mock_model('Playlist', :name => 'Electro')
]
assign :tracks, [
mock_model('Track', :name => 'Mega song')
]
end
it 'displays a list of playlists' do
@@ -16,4 +19,9 @@ describe 'home/index.html.haml' do
render
rendered.should have_selector('a', :text => 'Add a track')
end
it 'displays a list of tracks' do
render
rendered.should have_selector('ul>li', :text => 'Mega song')
end
end