Organize feature specs in sub directories
This commit is contained in:
parent
10d4da2822
commit
737c6b03e4
@ -1,4 +1,4 @@
|
||||
feature 'Playlists' do
|
||||
feature 'Playlists CRUD' do
|
||||
include UserIntegrationHelpers
|
||||
|
||||
background { sign_in }
|
@ -1,4 +1,4 @@
|
||||
feature 'Tracks' do
|
||||
feature 'Tracks CRUD' do
|
||||
include UserIntegrationHelpers
|
||||
|
||||
background { sign_in }
|
||||
@ -22,13 +22,4 @@ feature 'Tracks' do
|
||||
expect(current_path).to eq track_path Track.first
|
||||
expect(page).to have_content 'Mega song'
|
||||
end
|
||||
|
||||
scenario 'plays track' 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
|
14
spec/features/tracks/player_spec.rb
Normal file
14
spec/features/tracks/player_spec.rb
Normal file
@ -0,0 +1,14 @@
|
||||
feature 'Tracks player' do
|
||||
include UserIntegrationHelpers
|
||||
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user