Implement playlist edit feature

* Display playlists as links in index
* Move playlist form in a partial
This commit is contained in:
Thibault Jouan
2011-07-12 11:34:40 +00:00
parent 33f979b573
commit 301205d3f0
10 changed files with 98 additions and 13 deletions

View File

@@ -16,3 +16,11 @@ Feature: Playlists
And I fill in "Name" with "Electro"
And I press "Create"
Then I should see "Electro" within "ul>li"
Scenario: Edit playlist
Given a playlist named Electro
And I am on the playlists page
When I follow "Electro"
And I fill in "Name" with "Rock"
And I press "Save"
Then I should see "Rock"

View File

@@ -2,3 +2,7 @@ Given /^Foo and Bar playlists$/ do
@foo = Playlist.create!(:name => 'Foo')
@bar = Playlist.create!(:name => 'Bar')
end
Given /^a playlist named Electro$/ do
Playlist.create!(:name => 'Electro')
end