Implement tracks/{show,listen}
This commit is contained in:
11
features/step_definitions/tracks_step.rb
Normal file
11
features/step_definitions/tracks_step.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
Given /^a track named "([^"]*)"$/ do |name|
|
||||
@track = Track.create!(:name => name)
|
||||
end
|
||||
|
||||
Then /^I should see an audio player$/ do
|
||||
page.should have_xpath '//audio'
|
||||
end
|
||||
|
||||
Then /^it should provide an audio stream for "([^"]*)"$/ do |name|
|
||||
page.should have_xpath "//audio[@src='#{stream_track_path(@track)}']"
|
||||
end
|
Reference in New Issue
Block a user