Sha256: 36f6987ae8c9c2e42d7d5e24e3bf9fe615c7261b97c1614a2ae3c3a1860cb1a2

Contents?: true

Size: 706 Bytes

Versions: 3

Compression:

Stored size: 706 Bytes

Contents

FactoryGirl.define do
  factory :definition, class: 'ESP::CustomSignature::Definition' do
    skip_create

    sequence(:id) { |n| n }
    code 'abc'
    created_at { Time.current }
    language 'javascript'
    status "active"
    updated_at { Time.current }

    relationships do
      { custom_signature: {
        data: {
          type: "custom_signatures",
          id: "1"
        },
        links: {
          related: "http://localhost:3000/api/v2/custom_signatures/1.json"
        }
      },
        results: {
          links: {
            related: "http://localhost:3000/api/v2/custom_signature_results.json?filter%5Bdefinition_id_eq%5D=#{id}"
          }
        }
      }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
esp_sdk-2.7.0 test/factories/custom_signature/definitions.rb
esp_sdk-2.6.0 test/factories/custom_signature/definitions.rb
esp_sdk-2.5.0 test/factories/custom_signature/definitions.rb