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