Remove controllers spec already tested elsewhere

This commit is contained in:
Thibault Jouan
2015-05-01 14:11:11 +00:00
parent 5e1757aff9
commit 896fe661bd
15 changed files with 64 additions and 478 deletions

View File

@@ -0,0 +1,16 @@
feature 'Sounds CRUD' do
include AcceptanceHelpers
background { sign_in }
scenario 'shows sound' do
track = create_track file: true
visit tracks_path
click_link track[:name]
visit find('audio')[:src]
expect(response_headers['Content-Type']).to eq 'audio/mpeg'
expect(page.body).to eq File.read(track[:file].path, mode: 'rb')
end
end