Associate a user to his playlists

This commit is contained in:
Thibault Jouan
2011-08-30 10:50:05 +00:00
parent 4f66db2682
commit 7fad9e0402
9 changed files with 48 additions and 7 deletions

View File

@@ -1,3 +1,12 @@
Given /^a playlist named "([^"]*)"$/ do |name|
Factory.create(:playlist, :name => name)
end
Then /^I should see "([^"]*)" and "([^"]*)" in a list$/ do |pl1, pl2|
page.should have_selector('ul>li:first-child', :text => pl1)
page.should have_selector('ul>li:first-child+li', :text => pl2)
end
Then /^I should see "([^"]*)" in the list$/ do |playlist_name|
page.should have_selector('ul>li', :text => playlist_name)
end