--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/spec/views/products/new.html.erb_spec.rb Mon Mar 10 10:39:23 2008 +0900
@@ -0,0 +1,20 @@
+require File.dirname(__FILE__) + '/../../spec_helper'
+
+describe "/products/new.html.erb" do
+ include ProductsHelper
+
+ before(:each) do
+ @product = mock_model(Product)
+ @product.stub!(:new_record?).and_return(true)
+ assigns[:product] = @product
+ end
+
+ it "should render new form" do
+ render "/products/new.html.erb"
+
+ response.should have_tag("form[action=?][method=post]", products_path) do
+ end
+ end
+end
+
+