scube-server/spec/features/tracks/player_spec.rb
2015-05-01 11:27:45 +00:00

15 lines
325 B
Ruby

feature 'Tracks player' do
include AcceptanceHelpers
background { sign_in }
scenario 'includes a player in track page' do
track = FactoryGirl.create(:track_with_sound)
visit track_path(track)
expect(page).to have_xpath "//audio[@src='#{sound_path track.sound}']"
visit find('audio')[:src]
end
end