Improve tracks CRUD

* Add index, edit and update action;
* Add _form partial;
* Add link to tracks/index in nav;
* Refactor specs.
This commit is contained in:
Thibault Jouan
2015-05-01 12:09:29 +00:00
parent e1c8a6038d
commit 5e1757aff9
9 changed files with 70 additions and 25 deletions

View File

@@ -24,4 +24,13 @@ module AcceptanceHelpers
click_button 'Create'
playlist
end
def create_track
track = attributes_for :track
visit tracks_path
click_link 'Create track'
fill_in 'Name', with: track[:name]
click_button 'Upload'
track
end
end