Sha256: b815240dabe65c309af09fe2b0e8c4b6c7c278bb2a9c115b00d73af0120a02bf

Contents?: true

Size: 987 Bytes

Versions: 6

Compression:

Stored size: 987 Bytes

Contents

FactoryGirl.define do
  factory :team, class: 'ESP::Team' do
    skip_create

    sequence(:id) { |n| n }
    type "teams"
    name "Default Team"
    created_at { Time.current }
    updated_at { Time.current }
    relationships do
      {
        sub_organization: {
          data: {
            type: "sub_organizations",
            id: "2"
          },
          links: {
            related: "http://localhost:3000/api/v2/sub_organizations/2.json"
          }
        },
        organization: {
          data: {
            type: "organizations",
            id: "2"
          },
          links: {
            related: "http://localhost:3000/api/v2/organizations/2.json"
          }
        },
        custom_signatures: {
          data: {
            type: "custom_signatures",
            id: "2"
          },
          links: {
            related: "http://localhost:3000/api/v2/custom_signatures?filter%5Bteam_id_eq%5D=#{id}"
          }
        }
      }
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
esp_sdk-2.8.0 test/factories/teams.rb
esp_sdk-2.7.0 test/factories/teams.rb
esp_sdk-2.6.0 test/factories/teams.rb
esp_sdk-2.5.0 test/factories/teams.rb
esp_sdk-2.4.0 test/factories/teams.rb
esp_sdk-2.3.0 test/factories/teams.rb