Sha256: 6f27a665f58a2d0f199d9e71c3b3238eba9908e43264834a72bbc5d7e946f231

Contents?: true

Size: 752 Bytes

Versions: 108

Compression:

Stored size: 752 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :letter, class: "Renalware::Letters::Letter" do
    accountable

    issued_on { Time.zone.today }
    description { "This is a custom description" }
    body { "I am pleased to report a marked improvement in her condition." }

    association :letterhead, factory: [:letter_letterhead]

    author { accountable_actor }

    factory :draft_letter, class: "Renalware::Letters::Letter::Draft" do
    end

    factory :pending_review_letter, class: "Renalware::Letters::Letter::PendingReview" do
    end

    factory :approved_letter, class: "Renalware::Letters::Letter::Approved" do
    end

    factory :completed_letter, class: "Renalware::Letters::Letter::Completed" do
    end
  end
end

Version data entries

108 entries across 108 versions & 1 rubygems

Version Path
renalware-core-2.0.116 spec/factories/letters/letters.rb
renalware-core-2.0.115 spec/factories/letters/letters.rb
renalware-core-2.0.113 spec/factories/letters/letters.rb
renalware-core-2.0.112 spec/factories/letters/letters.rb
renalware-core-2.0.111 spec/factories/letters/letters.rb
renalware-core-2.0.110 spec/factories/letters/letters.rb
renalware-core-2.0.109 spec/factories/letters/letters.rb
renalware-core-2.0.108 spec/factories/letters/letters.rb
renalware-core-2.0.106 spec/factories/letters/letters.rb
renalware-core-2.0.105 spec/factories/letters/letters.rb
renalware-core-2.0.104 spec/factories/letters/letters.rb
renalware-core-2.0.103 spec/factories/letters/letters.rb
renalware-core-2.0.102 spec/factories/letters/letters.rb
renalware-core-2.0.101 spec/factories/letters/letters.rb
renalware-core-2.0.100 spec/factories/letters/letters.rb
renalware-core-2.0.99 spec/factories/letters/letters.rb
renalware-core-2.0.98 spec/factories/letters/letters.rb
renalware-core-2.0.97 spec/factories/letters/letters.rb
renalware-core-2.0.96 spec/factories/letters/letters.rb
renalware-core-2.0.95 spec/factories/letters/letters.rb