Sha256: 3dbac08bb7ed23015eb40a344bd53b04cfc028d4f2c4c4bf322e9074746c7bb7
Contents?: true
Size: 403 Bytes
Versions: 12
Compression:
Stored size: 403 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
12 entries across 12 versions & 1 rubygems