Sha256: 0e8260c8bae8f38db787f5d2246b31fb89a13ad94cde8a1a5563555a2de0ce73

Contents?: true

Size: 417 Bytes

Versions: 13

Compression:

Stored size: 417 Bytes

Contents

FactoryGirl.define do
  factory :account, :class => Cadenero::V1::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
    factory :account_with_schema do
      after(:create) do |account|
        account.create_schema
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cadenero-0.0.2.b10 spec/support/factories/account_factory.rb
cadenero-0.0.2.b8 spec/support/factories/account_factory.rb
cadenero-0.0.2.b7 spec/support/factories/account_factory.rb
cadenero-0.0.2.b6 spec/support/factories/account_factory.rb
cadenero-0.0.2.b5 spec/support/factories/account_factory.rb
cadenero-0.0.2.b4 spec/support/factories/account_factory.rb
cadenero-0.0.2.b3 spec/support/factories/account_factory.rb
cadenero-0.0.2.b2 spec/support/factories/account_factory.rb
cadenero-0.0.2.b1 spec/support/factories/account_factory.rb
cadenero-0.0.2.a3 spec/support/factories/account_factory.rb
cadenero-0.0.2.a2 spec/support/factories/account_factory.rb
cadenero-0.0.2.a1 spec/support/factories/account_factory.rb
cadenero-0.0.2.a spec/support/factories/account_factory.rb