Sha256: e148786d334a2cfa66d4c241084a28a737bcad3ddb4a0e15d1946b1a1007ec34
Contents?: true
Size: 1.26 KB
Versions: 3
Compression:
Stored size: 1.26 KB
Contents
Factory.sequence :email do |n| "user#{n}@example.com" end Factory.sequence :name do |n| "name#{n}" end Factory.define :user do |user| user.name { "test user" } user.email { Factory.next :email } user.password { "password" } user.password_confirmation { "password" } end Factory.define :email_confirmed_user, :parent => :user do |user| user.email_confirmed { true } end Factory.define :account do |f| f.name { Factory.next(:name) } f.url { Factory.next(:name) } end Factory.define :account_membership do |f| f.association :user f.association :account end Factory.define :signup do |f| f.account_name { Factory.next(:name) } f.url { Factory.next(:name) } f.user_name { "test user" } f.email { Factory.next :email } f.password { "password" } f.password_confirmation { "password" } end Factory.define :project do |f| f.association :account end Factory.define :project_membership do |f| f.association :user f.project {|a| a.association(:project, :account => a.user.account)} end Factory.define :invitation do |f| f.email { Factory.next(:email) } f.association :account end Factory.define :plan do |f| f.name 'Free' end
Version data entries
3 entries across 3 versions & 1 rubygems