Simplify playlists CRUD specs

This commit is contained in:
Thibault Jouan
2015-05-01 11:40:11 +00:00
parent 9d37916e17
commit e1c8a6038d
2 changed files with 11 additions and 22 deletions

View File

@@ -15,4 +15,13 @@ module AcceptanceHelpers
password: user.password
}
end
def create_playlist
playlist = attributes_for :playlist
visit playlists_path
click_link 'Create playlist'
fill_in 'Name', with: playlist[:name]
click_button 'Create'
playlist
end
end