Sha256: e29d74726eb79baff330429c2edabc322a1da5f5eb13d4c1baf29236f37ecd9c

Contents?: true

Size: 1.02 KB

Versions: 19

Compression:

Stored size: 1.02 KB

Contents

FactoryGirl.define do
  factory :user, class: Maestrano::Connector::Rails::User do
    email 'email@example.com'
    tenant 'default'
  end

  factory :organization, class: Maestrano::Connector::Rails::Organization do
    name 'My company'
    tenant 'default'
    sequence(:uid) { SecureRandom.uuid }
    sequence(:oauth_uid) { |n| "realm_#{n}" }
    oauth_provider 'this_app'
  end

  factory :user_organization_rel, class: Maestrano::Connector::Rails::UserOrganizationRel do
    association :user
    association :organization
  end

  factory :idmap, class: Maestrano::Connector::Rails::IdMap do
    sequence(:connec_id) { SecureRandom.uuid }
    connec_entity 'person'
    sequence(:external_id) { |n| "external_#{n}" }
    external_entity 'contact'
    last_push_to_external 2.days.ago
    last_push_to_connec 1.day.ago
    association :organization
    metadata {}
  end

  factory :synchronization, class: Maestrano::Connector::Rails::Synchronization do
    association :organization
    status 'SUCCESS'
    partial false
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
maestrano-connector-rails-2.3.6 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.3.5 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.3.4 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.3.3 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.3.2 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.3.1 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.3.0 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.2.1 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.2.0 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.1.3 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.1.2 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.1.1 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.1.0 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.0.2.pre.RC12 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.0.2.pre.RC11 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.0.2.pre.RC10 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.0.2.pre.RC8 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.0.2.pre.RC9 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.0.2.pre.RC7 lib/maestrano_connector_rails/factories.rb