Sha256: 0b1a06ba9cab362d78f8e74ec7adeb70d9a8127c5898730ce50ebb239961465a
Contents?: true
Size: 500 Bytes
Versions: 22
Compression:
Stored size: 500 Bytes
Contents
require 'factory_girl' Factory.define :user do |u| u.sequence(:username) { |n| "person#{n}" } u.sequence(:email) { |n| "person#{n}@cucumber.com" } u.password "greenandjuicy" u.password_confirmation "greenandjuicy" end Factory.define :refinery_user, :parent => :user do |u| u.roles { [ Role[:refinery] ] } u.after_create do |user| Refinery::Plugins.registered.each_with_index do |plugin, index| user.plugins.create(:name => plugin.name, :position => index) end end end
Version data entries
22 entries across 22 versions & 3 rubygems