spec/performance.rb in musterb-0.0.5 vs spec/performance.rb in musterb-0.0.6

- old
+ new

@@ -30,22 +30,24 @@ </ul> </div> {{/products}} EOF +# Mix of symbols and strings def random_product { - "id" => rand(10000), - "favorite_id" => rand(10000), - "quick_view_url" => "http://foo.bar", - "name" => "Product name", - "url" => "http://foo.url", - "thumbnail" => "http://foo.image", - "sku" => "sku", - "fabrics" => "fabrics", - "themes" => "themes", - "designer" => "designer", - "favorited" => "favorited" + :id => rand(10000), + :favorite_id => rand(10000), + :quick_view_url => "http://foo.bar", + :name => "Product name", + :url => "http://foo.url", + :thumbnail => "http://foo.image", + :sku => "sku", + :fabrics => "fabrics", + :price => "price", + :themes => "themes", + :designer => "designer", + :favorited => "favorited" } end products = 16.times.map { random_product }