Sha256: 01967849241d991e16fac63b534b905a799591f07c47535b65a31629554bbb84
Contents?: true
Size: 341 Bytes
Versions: 12
Compression:
Stored size: 341 Bytes
Contents
class FactoryBot # for factory_bot compatibility spec def self.factories {} end Factory = Struct.new(:name, :build_class) def self.stub_factories(hash) factories = {} hash.each do |name, build_class| factories[name] = Factory.new(name, build_class) end FactoryBot.stub :factories => factories end end
Version data entries
12 entries across 12 versions & 1 rubygems