Sha256: c947a652d30d2502c31ea5d931e0236875150ec47ee7b6440c4a2fdf47ca53c7
Contents?: true
Size: 786 Bytes
Versions: 3
Compression:
Stored size: 786 Bytes
Contents
blueprint :apple do Fruit.create! :species => 'apple' end blueprint :many_apples => [:apple, :apple, :apple] blueprint :bananas_and_apples => :apple do @banana = Fruit.create! :species => 'banana' end blueprint :orange do Fruit.create! :species => 'orange' end blueprint :fruit => [:apple, :orange] do [@orange, @apple] end blueprint :bananas_and_apples_and_oranges => [:bananas_and_apples, :orange] do @fruit = [@orange, @apple, @banana] end blueprint :cherry do Fruit.create! :species => 'cherry', :average_diameter => 3 end blueprint :big_cherry => :cherry do Fruit.create! :species => @cherry.species, :average_diameter => 7 end blueprint :cherry_basket => [:big_cherry, :cherry] do [@cherry, @big_cherry] end blueprint :parent_not_existing => :not_existing
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
sinsiliux-blueprints-0.1.1 | spec/blueprints.rb |
blueprints-0.1.1 | spec/blueprints.rb |
blueprints-0.1.0 | spec/blueprints.rb |