changelog shortlog tags changeset file revisions annotate raw

spec/views/products/edit.html.erb_spec.rb

revision 18: b97ed3573af2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/spec/views/products/edit.html.erb_spec.rb	Mon Mar 10 10:39:23 2008 +0900
@@ -0,0 +1,19 @@
+require File.dirname(__FILE__) + '/../../spec_helper'
+
+describe "/products/edit.html.erb" do
+  include ProductsHelper
+  
+  before do
+    @product = mock_model(Product)
+    assigns[:product] = @product
+  end
+
+  it "should render edit form" do
+    render "/products/edit.html.erb"
+    
+    response.should have_tag("form[action=#{product_path(@product)}][method=post]") do
+    end
+  end
+end
+
+