2 :address => Address.gen
6 :first_name => Random.word(:max => 50),
7 :last_name => Random.word(:max => 50),
8 :address1 => Random.address,
9 :postal_code => "%05d" % rand(100_000) + "-%04d" % rand([0, 1_000].random),
10 :company => (1..4).random.of {Random.word(:max => 25)}.join(' '),
11 :telephone => Random.phone_number,
12 :address2 => Random.address,
13 :city => Random.word(:max => 50),
14 :country => country = Country.gen,
15 :state => State.gen(:country => country)
19 :code => Random.country_code,
20 :name => Random.word(:max => 100, :unique => true)
24 :username => Random.word(:max => 50, :unique => true)
32 :quantity => rand(10),
33 :unit_price => rand * rand(1_000)
37 :order_number => rand(100_000),
38 :shipping_cost => rand(10),
39 :product_cost => rand(10),
41 :line_items => (1..10).of {LineItem.gen},
42 :shipping_info => ShippingInfo.gen,
43 :customer => Customer.gen
48 :code => "%010d" % rand(1_000_000),
49 :date_available => Time.now,
50 :is_discontinued => Random.boolean
53 ShippingInfo.fixture {{
58 :country => Country.gen,
59 :name => name = Random.word,
63 Transaction.fixture {{
65 :account => Account.gen
69 :location => Tempfile.new(Random.word).path
73 :username => Random.word(:unique => true)
77 :min_weight => rand(10),
78 :max_weight => rand(10),