Sha256: 948fdd6e193a7620ead4b5c64415ba702f63728989323fef3292f2ab9146f383
Contents?: true
Size: 566 Bytes
Versions: 40
Compression:
Stored size: 566 Bytes
Contents
# frozen_string_literal: true FactoryBot.define do sequence :gp_code do |n| "GP1234#{n}" end factory :primary_care_physician, class: "Renalware::Patients::PrimaryCarePhysician" do name "GOOD PJ" telephone "0203593082" code { generate(:gp_code) } practitioner_type "GP" # ensures addressable_type and addressable_id work is assigned, using # FactoryBot's simple assoc method does not work # before(:create) do |primary_care_physician| primary_care_physician.build_address(attributes_for(:address)) end end end
Version data entries
40 entries across 40 versions & 1 rubygems