Sha256: 4d3bf415aa3ade4afb6959a8609b84091c4f353efa0d135b4451e808a1cff651

Contents?: true

Size: 562 Bytes

Versions: 1

Compression:

Stored size: 562 Bytes

Contents

Sham.define do
  category_name           { |i| "Category #{i}" }
  product_name            { |i| "Widget #{i}" }
  price(:unique => false) { ['5.00', '10.00', '20.00', '15.00' , '25.00', '7.50'].rand }
end

AuditFields.blueprint do
  CreatedBy     "Machinist"
end

Product.blueprint do
  Name          { Sham.product_name }
  Description   "Test Widget"
  Price         { Sham.price }
  Category      { Category.make }
  AuditFields   { AuditFields.make }
end

Category.blueprint do
  Name          { Sham.category_name }
  AuditFields   { AuditFields.make }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby_odata-0.1.0 test/blueprints.rb