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

Version Path
mtdevise-3.5.5 spec/support/factories/account_factory.rb
mtdevise-3.5.1 spec/support/factories/account_factory.rb
mtdevise-3.5.0 spec/support/factories/account_factory.rb
mtdevise-3.0.4 spec/support/factories/account_factory.rb
mtdevise-3.0.2 spec/support/factories/account_factory.rb
mtdevise-3.0.0 spec/support/factories/account_factory.rb
mtdevise-2.7.0 spec/support/factories/account_factory.rb
mtdevise-2.6.6 spec/support/factories/account_factory.rb
mtdevise-2.6.5 spec/support/factories/account_factory.rb
mtdevise-2.5.9 spec/support/factories/account_factory.rb
mtdevise-2.5.7 spec/support/factories/account_factory.rb
mtdevise-2.5.5 spec/support/factories/account_factory.rb
mtdevise-2.5.2 spec/support/factories/account_factory.rb
mtdevise-2.5.0 spec/support/factories/account_factory.rb
mtdevise-2.0.5 spec/support/factories/account_factory.rb
mtdevise-2.0.2 spec/support/factories/account_factory.rb
mtdevise-2.0.1 spec/support/factories/account_factory.rb
mtdevise-2.0.0b spec/support/factories/account_factory.rb