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.137 spec/factories/letters/letters.rb
renalware-core-2.0.136 spec/factories/letters/letters.rb
renalware-core-2.0.135 spec/factories/letters/letters.rb
renalware-core-2.0.134 spec/factories/letters/letters.rb
renalware-core-2.0.133 spec/factories/letters/letters.rb
renalware-core-2.0.132 spec/factories/letters/letters.rb
renalware-core-2.0.131 spec/factories/letters/letters.rb
renalware-core-2.0.130 spec/factories/letters/letters.rb
renalware-core-2.0.129 spec/factories/letters/letters.rb
renalware-core-2.0.128 spec/factories/letters/letters.rb
renalware-core-2.0.127 spec/factories/letters/letters.rb
renalware-core-2.0.126 spec/factories/letters/letters.rb
renalware-core-2.0.125 spec/factories/letters/letters.rb
renalware-core-2.0.124 spec/factories/letters/letters.rb
renalware-core-2.0.123 spec/factories/letters/letters.rb
renalware-core-2.0.121 spec/factories/letters/letters.rb
renalware-core-2.0.120 spec/factories/letters/letters.rb
renalware-core-2.0.119 spec/factories/letters/letters.rb
renalware-core-2.0.118 spec/factories/letters/letters.rb
renalware-core-2.0.117 spec/factories/letters/letters.rb