Sha256: fad37661393ea9218221caafa97073cf5070ec25d8fcd84ae693f14e277c7489

Contents?: true

Size: 383 Bytes

Versions: 1

Compression:

Stored size: 383 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :entry, class: "Archangel::Entry" do
    collection
    value { { foo: "bar" } }
    published_at { Time.current }

    trait :deleted do
      deleted_at { Time.current }
    end

    trait :unpublished do
      published_at { nil }
    end

    trait :future do
      published_at { 1.week.from_now }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
archangel-0.4.0 lib/archangel/testing_support/factories/archangel_entries.rb