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.1.1 spec/factories/letters/contact_descriptions.rb
renalware-core-2.1.0 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.167 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.166 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.165 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.164 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.163 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.162 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.161 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.160 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.159 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.158 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.157 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.156 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.155 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.153 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.152 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.151 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.149 spec/factories/letters/contact_descriptions.rb
renalware-core-2.0.148 spec/factories/letters/contact_descriptions.rb