Sha256: 807435f271958cf8f7d589a6c2525236a85f2c2400f085470817ab2afa1698fe
Contents?: true
Size: 685 Bytes
Versions: 6
Compression:
Stored size: 685 Bytes
Contents
Given /^the following users exist:$/ do |table| table.hashes.each do |user| Gritano::User.create(user) end end Given /^the following keys exist:$/ do |table| table.hashes.each do |key| Gritano::User.find_by_login(key['login']).keys.create(name: key["key"], key: key["key"]) end end Given /^the following repositories exist:$/ do |table| table.hashes.each do |repo| Gritano::Repository.create(repo) end end Given /^the following permissions exist:$/ do |table| table.hashes.each do |permission| Gritano::User.find_by_login(permission['user']) .add_access(Gritano::Repository.find_by_name(permission['repo']), permission['access'].to_sym) end end
Version data entries
6 entries across 6 versions & 1 rubygems