Add basic playlists management

* Index of playlists
* Create a new playlist
* Basic playlist model with mandatory name
This commit is contained in:
Thibault Jouan
2011-07-09 09:23:32 +00:00
parent 74fb4ca86f
commit 33f979b573
13 changed files with 205 additions and 57 deletions

View File

@@ -0,0 +1,18 @@
Feature: Playlists
So that tracks can be grouped in lists
As a listener
I want to manage some playlists
Scenario: List playlists
Given Foo and Bar playlists
When I am on the playlists page
Then I should see "Foo" within "ul>li"
And I should see "Bar" within "ul>li+li"
Scenario: Create playlist
Given I am on the playlists page
When I follow "Create playlist"
And I fill in "Name" with "Electro"
And I press "Create"
Then I should see "Electro" within "ul>li"

View File

@@ -0,0 +1,4 @@
Given /^Foo and Bar playlists$/ do
@foo = Playlist.create!(:name => 'Foo')
@bar = Playlist.create!(:name => 'Bar')
end