Sha256: 09ac80f565a5b86272e4a31582a2a28ed8928ba03a803b6ce27905f15554f104

Contents?: true

Size: 1 KB

Versions: 13

Compression:

Stored size: 1 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
  end

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
maestrano-connector-rails-2.0.2.pre.RC6 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.0.2.pre.RC5 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.0.2.pre.RC4 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.0.2.pre.RC3 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.0.2.pre.RC2 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.0.2.pre.RC1 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.0.1 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.0.0 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.0.0.pre.RC13 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.0.0.pre.RC12 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.0.0.pre.RC11 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.0.0.pre.RC10 lib/maestrano_connector_rails/factories.rb
maestrano-connector-rails-2.0.0.pre.RC9 lib/maestrano_connector_rails/factories.rb