Sha256: 153ebd27d78cbabe5c5489fede1ffa44c1e07237a995ef4faa0ced3778bf4ab9
Contents?: true
Size: 404 Bytes
Versions: 18
Compression:
Stored size: 404 Bytes
Contents
FactoryGirl.define do factory :account, :class => Mtdevise::Account do sequence(:name) { |n| "Test Account ##{n}" } sequence(:firstname) { |n| "Test#{n}" } sequence(:lastname) { |n| "Test#{n}" } sequence(:username) { |n| "test#{n}" } sequence(:subdomain) { |n| "test#{n}" } association :owner, :factory => :user after(:create) do |account| account.users << account.owner end end end
Version data entries
18 entries across 18 versions & 1 rubygems