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

Version Path
mtdevise-1.8.6 spec/support/factories/account_factory.rb
mtdevise-1.8.5 spec/support/factories/account_factory.rb
mtdevise-1.8.0 spec/support/factories/account_factory.rb
mtdevise-1.7.11 spec/support/factories/account_factory.rb
mtdevise-1.7.8 spec/support/factories/account_factory.rb
mtdevise-1.7.5 spec/support/factories/account_factory.rb
mtdevise-1.7.1 spec/support/factories/account_factory.rb
mtdevise-1.7.0 spec/support/factories/account_factory.rb
mtdevise-1.6.6 spec/support/factories/account_factory.rb
mtdevise-1.6.5 spec/support/factories/account_factory.rb
mtdevise-1.6.3 spec/support/factories/account_factory.rb
mtdevise-1.6.0 spec/support/factories/account_factory.rb