Sha256: 3489c1aed4a0cd7f6758c61c0fadfba3ed4ab232004d175bc2f31020c4a4e7b6

Contents?: true

Size: 410 Bytes

Versions: 40

Compression:

Stored size: 410 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :address, class: "Renalware::Address" do
    street_1 "123 Legoland"
    street_2 "Brewster Road"
    street_3 "Brownswater"
    town "Windsor"
    county "Berkshire"
    country { Renalware::System::Country.find_by(alpha2: "GB") }
    postcode "NW1 6BB"

    trait :in_uk do
      association(:country, factory: :united_kingdom)
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
renalware-core-2.0.42 spec/factories/system/addresses.rb
renalware-core-2.0.41 spec/factories/system/addresses.rb
renalware-core-2.0.40 spec/factories/system/addresses.rb
renalware-core-2.0.39 spec/factories/system/addresses.rb
renalware-core-2.0.38 spec/factories/system/addresses.rb
renalware-core-2.0.37 spec/factories/system/addresses.rb
renalware-core-2.0.36 spec/factories/system/addresses.rb
renalware-core-2.0.35 spec/factories/system/addresses.rb
renalware-core-2.0.34 spec/factories/system/addresses.rb
renalware-core-2.0.33 spec/factories/system/addresses.rb
renalware-core-2.0.32 spec/factories/system/addresses.rb
renalware-core-2.0.31 spec/factories/system/addresses.rb
renalware-core-2.0.30 spec/factories/system/addresses.rb
renalware-core-2.0.28 spec/factories/system/addresses.rb
renalware-core-2.0.27 spec/factories/system/addresses.rb
renalware-core-2.0.26 spec/factories/system/addresses.rb
renalware-core-2.0.25 spec/factories/system/addresses.rb
renalware-core-2.0.24 spec/factories/system/addresses.rb
renalware-core-2.0.23 spec/factories/system/addresses.rb
renalware-core-2.0.22 spec/factories/system/addresses.rb