Sha256: 052557cee2e98e00637f6d92886b3568f532b54e0dd5336ad8367cc08e204580
Contents?: true
Size: 791 Bytes
Versions: 9
Compression:
Stored size: 791 Bytes
Contents
Factory.sequence :email do |n| "somebody#{n}@example.com" end Factory.sequence :login do |n| "inquire#{n}" end Factory.sequence :name do |n| "a_name#{n}" end Factory.sequence :abbr do |n| "abbr#{n}" end Factory.sequence :description do |n| "This is the description: #{n}" end Factory.sequence :title do |n| "This is the title: #{n}" end Factory.define :user do |f| f.login { Factory.next(:login) } f.email { Factory.next(:email) } f.password 'asdfasdf' f.password_confirmation 'asdfasdf' f.first_name 'test' f.last_name 'guy' f.terms_of_service true f.activated_at DateTime.now end Factory.define :permission do |f| f.role {|a| a.association(:role)} f.user {|a| a.association(:user)} end Factory.define :role do |f| f.rolename 'administrator' end
Version data entries
9 entries across 9 versions & 1 rubygems