Sha256: ea12ae0c19faab627b4af449b7a3f88af1ed30eb02ae1b5895277ad09982254b

Contents?: true

Size: 239 Bytes

Versions: 5

Compression:

Stored size: 239 Bytes

Contents

Factory.define :pirate do |p|
  p.title 'Captain Jack'
  p.booty 'Rum, Ladies, and a cutlass'
end

Factory.define :pirate_with_ships, :parent => :pirate do |p|
  p.ships {|ships| [ships.association(:ship), ships.association(:dinghy)] }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
exposure-0.2.1 spec/factories/pirate_factory.rb
exposure-0.2.0 spec/factories/pirate_factory.rb
exposure-0.1.3 spec/factories/pirate_factory.rb
exposure-0.1.2 spec/factories/pirate_factory.rb
exposure-0.1.1 spec/factories/pirate_factory.rb