Sha256: fc0bedef0cb7dacbd87530eacfc12984d3ef2ab73fd69c9e134aa13eb49cf692

Contents?: true

Size: 333 Bytes

Versions: 1

Compression:

Stored size: 333 Bytes

Contents

# encoding: UTF-8

Watchmaker.learn :two_garages do
  2.times do 
    Factory.create(:garage)
  end
end

Watchmaker.learn :garage, :factories => [:garage]

Watchmaker.learn :car, :factories => [:car], :watchmakers => [:garage]

Watchmaker.learn :car_in_garage, :factories => [:garage, :car] do |garage, car|
  garage.cars << car
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
watchmaker-0.0.1 spec/support/watchmakers.rb