--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/spec/views/products/index.html.erb_spec.rb Mon Mar 10 10:39:23 2008 +0900
@@ -0,0 +1,17 @@
+require File.dirname(__FILE__) + '/../../spec_helper'
+
+describe "/products/index.html.erb" do
+ include ProductsHelper
+
+ before(:each) do
+ product_98 = mock_model(Product)
+ product_99 = mock_model(Product)
+
+ assigns[:products] = [product_98, product_99]
+ end
+
+ it "should render list of products" do
+ render "/products/index.html.erb"
+ end
+end
+