Sha256: 87c1458b3685e0ce9ec2a10b7161209b0739870365db447e165b2b49f5d6e59e

Contents?: true

Size: 400 Bytes

Versions: 118

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  sequence(:system_code) { |n| "sibling-#{n}" }
  sequence(:name) { |n| "Sibling #{n}" }
  sequence(:position) { |n| n }

  factory :letter_contact_description, class: "Renalware::Letters::ContactDescription" do
    system_code
    name
    position

    trait :unspecified do
      name { "Other" }
      system_code { "other" }
    end
  end
end

Version data entries

118 entries across 118 versions & 1 rubygems

Version Path
renalware-core-2.0.104 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.103 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.102 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.101 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.100 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.99 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.98 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.97 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.96 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.95 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.94 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.93 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.92 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.91 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.90 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.89 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.88 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.87 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.86 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.85 spec/factories/letters/contact_descriptions.rb