Sha256: a5e4d5d8a30b072969d152896220b6e3b69d39d28a52804bdebac2a4f8091464

Contents?: true

Size: 710 Bytes

Versions: 2

Compression:

Stored size: 710 Bytes

Contents

FactoryGirl.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

2 entries across 2 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta9 spec/factories/letters/letters.rb
renalware-core-2.0.0.pre.beta8 spec/factories/letters/letters.rb