Sha256: 3858fe91440ec9c46eb40dcfb55a48619db5e629db473326f2a0e20049f5032f
Contents?: true
Size: 303 Bytes
Versions: 102
Compression:
Stored size: 303 Bytes
Contents
FactoryBot.define do factory :state, class: Spree::State do sequence(:name) { |n| "STATE_NAME_#{n}" } sequence(:abbr) { |n| "STATE_ABBR_#{n}" } country do |country| usa = Spree::Country.find_by(numcode: 840) usa.present? ? usa : country.association(:country) end end end
Version data entries
102 entries across 102 versions & 1 rubygems