Sha256: cb113304e4b6b14043fbc66a2d67fab402b856ad7d93aaaeedadb761fce281e5

Contents?: true

Size: 356 Bytes

Versions: 5

Compression:

Stored size: 356 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :entry, class: "Archangel::Entry" do
    collection
    value { ActiveSupport::JSON.encode(title: "Title", content: "Content") }
    available_at { Time.current }

    trait :deleted do
      deleted_at { Time.current }
    end

    trait :unavailable do
      deleted_at nil
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
archangel-0.0.6 lib/archangel/testing_support/factories/archangel_entries.rb
archangel-0.0.5 lib/archangel/testing_support/factories/archangel_entries.rb
archangel-0.0.4 lib/archangel/testing_support/factories/archangel_entries.rb
archangel-0.0.3 lib/archangel/testing_support/factories/archangel_entries.rb
archangel-0.0.2 lib/archangel/testing_support/factories/archangel_entries.rb