Test keys CRUD

This commit is contained in:
Thibault Jouan
2015-05-05 03:24:35 +00:00
parent 37ac6b769a
commit a2488980ed
3 changed files with 60 additions and 0 deletions

View File

@@ -21,6 +21,15 @@ module AcceptanceHelpers
end
end
def create_key
attributes_for :key do |o|
visit keys_path
click_link 'New key'
fill_in 'Name', with: o[:name]
click_button 'Create'
end
end
def create_playlist
attributes_for :playlist do |o|
visit playlists_path