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.51 spec/factories/letters/letters.rb
renalware-core-2.0.50 spec/factories/letters/letters.rb
renalware-core-2.0.48 spec/factories/letters/letters.rb
renalware-core-2.0.47 spec/factories/letters/letters.rb
renalware-core-2.0.46 spec/factories/letters/letters.rb
renalware-core-2.0.45 spec/factories/letters/letters.rb
renalware-core-2.0.44 spec/factories/letters/letters.rb
renalware-core-2.0.43 spec/factories/letters/letters.rb