Sha256: 7e952a7b4bef917ed6c6237cda64e0b177019925786448fa85d294fa3f27ab56
Contents?: true
Size: 498 Bytes
Versions: 15
Compression:
Stored size: 498 Bytes
Contents
require 'factory_girl' Factory.define :user do |u| u.sequence(:login) { |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
15 entries across 15 versions & 1 rubygems