Sha256: b6087ed2bf0bda5cd12f1eb2d8f03e16a894517acac6420b8a516803389e292c

Contents?: true

Size: 737 Bytes

Versions: 5

Compression:

Stored size: 737 Bytes

Contents

# frozen_string_literal: true

require 'securerandom'

FactoryGirl.define do
  factory :person, class: Namespaced::Person do
    first_name 'Tony'
    last_name 'Stark'
    guid '98711710-acb5-4a41-ba51-e0fc56644b53'
    global_registry_id nil
    global_registry_mdm_id nil
  end

  factory :address do
    address1 '10880 Malibu Point'
    zip '90265'
    primary true
    global_registry_id nil
    person_id nil
  end

  factory :organization do
    name 'Organization'
    description 'Fancy Organization'
    start_date { Time.zone.today }
    parent_id nil
    gr_id nil
  end

  factory :assignment do
    role 'leader'
    hired_at { 2.months.ago }
    person_id nil
    organization_id nil
    global_registry_id nil
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
global-registry-bindings-0.0.5 spec/factories/factories.rb
global-registry-bindings-0.0.4 spec/factories/factories.rb
global-registry-bindings-0.0.3 spec/factories/factories.rb
global-registry-bindings-0.0.2 spec/factories/factories.rb
global-registry-bindings-0.0.1 spec/factories/factories.rb