Skip to content

v0.13.0

Latest
Compare
Choose a tag to compare
@flash-gordon flash-gordon released this 21 Jan 11:52
· 2 commits to main since this release
v0.13.0
accbb2a

Added

Factory.define(:user) do |f|
  f.name { fake(:name, unique: true) }
end

Be advised there's Faker::UniqueGenerator.clear to clear the cache of unique values.

  • Support for setting traits with a keyword argument for associations (via #84) (@parndt)
Factory.define :category do |f|
  f.association :image, traits: [:fancy]
end

Factory.create is aliased to Factory.[]
Factory.build is aliased to Factory.structs[]

Changed

Compare v0.12.0...v0.13.0