|
1 | 1 | Spree::Sample.load_sample("tax_categories")
|
| 2 | +Spree::Sample.load_sample("shipping_categories") |
2 | 3 |
|
3 | 4 | clothing = Spree::TaxCategory.find_by_name!("Clothing")
|
| 5 | +shipping_category = Spree::ShippingCategory.find_by_name!("Default Shipping") |
4 | 6 |
|
5 | 7 | default_attrs = {
|
6 | 8 | :description => Faker::Lorem.paragraph,
|
|
11 | 13 | {
|
12 | 14 | :name => "Ruby on Rails Tote",
|
13 | 15 | :tax_category => clothing,
|
| 16 | + :shipping_category => shipping_category, |
14 | 17 | :price => 15.99,
|
15 | 18 | :eur_price => 14,
|
16 | 19 | },
|
17 | 20 | {
|
18 | 21 | :name => "Ruby on Rails Bag",
|
19 | 22 | :tax_category => clothing,
|
| 23 | + :shipping_category => shipping_category, |
20 | 24 | :price => 22.99,
|
21 | 25 | :eur_price => 19,
|
22 | 26 | },
|
23 | 27 | {
|
24 | 28 | :name => "Ruby on Rails Baseball Jersey",
|
25 | 29 | :tax_category => clothing,
|
| 30 | + :shipping_category => shipping_category, |
26 | 31 | :price => 19.99,
|
27 | 32 | :eur_price => 16
|
28 | 33 | },
|
29 | 34 | {
|
30 | 35 | :name => "Ruby on Rails Jr. Spaghetti",
|
31 | 36 | :tax_category => clothing,
|
| 37 | + :shipping_category => shipping_category, |
32 | 38 | :price => 19.99,
|
33 | 39 | :eur_price => 16
|
34 | 40 |
|
35 | 41 | },
|
36 | 42 | {
|
37 | 43 | :name => "Ruby on Rails Ringer T-Shirt",
|
| 44 | + :shipping_category => shipping_category, |
38 | 45 | :tax_category => clothing,
|
39 | 46 | :price => 19.99,
|
40 | 47 | :eur_price => 16
|
41 | 48 | },
|
42 | 49 | {
|
43 | 50 | :name => "Ruby Baseball Jersey",
|
44 | 51 | :tax_category => clothing,
|
| 52 | + :shipping_category => shipping_category, |
45 | 53 | :price => 19.99,
|
46 | 54 | :eur_price => 16
|
47 | 55 | },
|
48 | 56 | {
|
49 | 57 | :name => "Apache Baseball Jersey",
|
50 | 58 | :tax_category => clothing,
|
| 59 | + :shipping_category => shipping_category, |
51 | 60 | :price => 19.99,
|
52 | 61 | :eur_price => 16
|
53 | 62 | },
|
54 | 63 | {
|
55 | 64 | :name => "Spree Baseball Jersey",
|
56 | 65 | :tax_category => clothing,
|
| 66 | + :shipping_category => shipping_category, |
57 | 67 | :price => 19.99,
|
58 | 68 | :eur_price => 16
|
59 | 69 | },
|
60 | 70 | {
|
61 | 71 | :name => "Spree Jr. Spaghetti",
|
62 | 72 | :tax_category => clothing,
|
| 73 | + :shipping_category => shipping_category, |
63 | 74 | :price => 19.99,
|
64 | 75 | :eur_price => 16
|
65 | 76 | },
|
66 | 77 | {
|
67 | 78 | :name => "Spree Ringer T-Shirt",
|
68 | 79 | :tax_category => clothing,
|
| 80 | + :shipping_category => shipping_category, |
69 | 81 | :price => 19.99,
|
70 | 82 | :eur_price => 16
|
71 | 83 | },
|
72 | 84 | {
|
73 | 85 | :name => "Spree Tote",
|
74 | 86 | :tax_category => clothing,
|
| 87 | + :shipping_category => shipping_category, |
75 | 88 | :price => 15.99,
|
76 | 89 | :eur_price => 14,
|
77 | 90 | },
|
78 | 91 | {
|
79 | 92 | :name => "Spree Bag",
|
80 | 93 | :tax_category => clothing,
|
| 94 | + :shipping_category => shipping_category, |
81 | 95 | :price => 22.99,
|
82 | 96 | :eur_price => 19
|
83 | 97 | },
|
84 | 98 | {
|
85 | 99 | :name => "Ruby on Rails Mug",
|
| 100 | + :shipping_category => shipping_category, |
86 | 101 | :price => 13.99,
|
87 | 102 | :eur_price => 12
|
88 | 103 | },
|
89 | 104 | {
|
90 | 105 | :name => "Ruby on Rails Stein",
|
| 106 | + :shipping_category => shipping_category, |
91 | 107 | :price => 16.99,
|
92 | 108 | :eur_price => 14
|
93 | 109 | },
|
94 | 110 | {
|
95 | 111 | :name => "Spree Stein",
|
| 112 | + :shipping_category => shipping_category, |
96 | 113 | :price => 16.99,
|
97 | 114 | :eur_price => 14,
|
98 | 115 | },
|
99 | 116 | {
|
100 | 117 | :name => "Spree Mug",
|
| 118 | + :shipping_category => shipping_category, |
101 | 119 | :price => 13.99,
|
102 | 120 | :eur_price => 12
|
103 | 121 | }
|
|
0 commit comments