class Object
Constants
- Factory
Factory
girl, relaxed.Factory.define :user do |f| f.login 'johndoe%d' # Sequence. f.email '%{login}@example.com' # Interpolate. f.password f.password_confirmation('foobar') # Chain. end Factory.define :post do |f| f.user { Factory :user } # Blocks, if you must. end
Public Instance Methods
Minifacture(name, attrs = {})
click to toggle source
# File minifacture.rb, line 47 def Minifacture name, attrs = {} Minifacture.create(name, attrs) end
Also aliased as: Factory