Sha256: adc17f00af02ecb77fc13e62178593560d45cfafd4e8a2692004839cd96db7f9
Contents?: true
Size: 545 Bytes
Versions: 6
Compression:
Stored size: 545 Bytes
Contents
# frozen_string_literal: true # Add to spec_helper.rb to require Physical factories: # # require "physical/test_support" # FactoryBot.definition_file_paths.concat(Physical::TestSupport.factory_paths) # FactoryBot.reload module Physical module TestSupport def self.factory_paths spec = Gem::Specification.find_by_name("physical") root = Pathname.new(spec.gem_dir) Dir[ root.join("lib", "physical", "spec_support", "factories", "*_factory.rb") ].map { |path| path.sub(/.rb\z/, "") } end end end
Version data entries
6 entries across 6 versions & 1 rubygems