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:
@@ -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
|
||||
|
Reference in New Issue
Block a user