Sha256: 4cd732cab6dcbcc71e8076f788aff8150a5f2f5247fbbd84e8bef83d0eb4d450

Contents?: true

Size: 1.05 KB

Versions: 9

Compression:

Stored size: 1.05 KB

Contents

FactoryGirl.define do
  factory :external_account, class: 'ESP::ExternalAccount' do
    skip_create

    sequence(:id) { |n| n }
    type "external_accounts"
    account "762160981991"
    arn "arn:aws:iam::762160981991:role/Evident-Service-Role-Kevin"
    created_at { Time.current }
    external_id "913310e7-6a9c-49f7-bd69-120721ec1122"
    name "Dev"
    updated_at { Time.current }
    relationships do
      { organization: {
        data: {
          type: "organizations",
          id: "1"
        },
        links: {
          related: "http://localhost:3000/api/v2/organizations/1.json"
        }
      },
        sub_organization: {
          data: {
            type: "sub_organizations",
            id: "1"
          },
          links: {
            related: "http://localhost:3000/api/v2/sub_organizations/1.json"
          }
        },
        team: {
          data: {
            type: "teams",
            id: "1"
          },
          links: {
            related: "http://localhost:3000/api/v2/teams/1.json"
          }
        }
      }
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
esp_sdk-2.7.0 test/factories/external_accounts.rb
esp_sdk-2.6.0 test/factories/external_accounts.rb
esp_sdk-2.5.0 test/factories/external_accounts.rb
esp_sdk-2.4.0 test/factories/external_accounts.rb
esp_sdk-2.3.0 test/factories/external_accounts.rb
esp_sdk-2.2.0 test/factories/external_accounts.rb
esp_sdk-2.1.0 test/factories/external_accounts.rb
esp_sdk-2.0.0 test/factories/external_accounts.rb
esp_sdk-2.0.0.rc1 test/factories/external_accounts.rb