changeset 18: | b97ed3573af2 |
author: | moriq <moriq@moriq.com> |
date: | Mon Mar 10 10:39:23 2008 +0900 (16 years ago) |
permissions: | -rw-r--r-- |
description: | generate rspec_scaffold product. |
1require File.dirname(__FILE__) + '/../../spec_helper'23describe "/products/edit.html.erb" do4 include ProductsHelper56 before do7 @product = mock_model(Product)8 assigns[:product] = @product9 end1011 it "should render edit form" do12 render "/products/edit.html.erb"1314 response.should have_tag("form[action=#{product_path(@product)}][method=post]") do15 end16 end17end1819