Sha256: 80b16ce6d12bdd395a6b64d552caa96c2c116bcba304ef8792405425d3620cc3

Contents?: true

Size: 341 Bytes

Versions: 12

Compression:

Stored size: 341 Bytes

Contents

require "mtwarden/testing_support/factories/user_factory"

FactoryGirl.define do
	factory :account, :class => Mtwarden::Account do
		sequence(:name) { |n| "Test Account ##{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
mtwarden-3.3.4 lib/mtwarden/testing_support/factories/account_factory.rb
mtwarden-3.3.3 lib/mtwarden/testing_support/factories/account_factory.rb
mtwarden-3.3.2 lib/mtwarden/testing_support/factories/account_factory.rb
mtwarden-3.3.1 lib/mtwarden/testing_support/factories/account_factory.rb
mtwarden-3.3.0 lib/mtwarden/testing_support/factories/account_factory.rb
mtwarden-3.2.0 lib/mtwarden/testing_support/factories/account_factory.rb
mtwarden-3.1.2 lib/mtwarden/testing_support/factories/account_factory.rb
mtwarden-3.1.1 lib/mtwarden/testing_support/factories/account_factory.rb
mtwarden-3.1.0 lib/mtwarden/testing_support/factories/account_factory.rb
mtwarden-3.0.3 lib/mtwarden/testing_support/factories/account_factory.rb
mtwarden-3.0.2 lib/mtwarden/testing_support/factories/account_factory.rb
mtwarden-3.0.1 lib/mtwarden/testing_support/factories/account_factory.rb