require 'spec_helper' # describe "purchases/edit" do # before(:each) do # @purchase = assign(:purchase, stub_model(Purchase, # :title => "MyString", # :description => "MyText", # :warranty_duration => 1 # )) # end # # it "renders the edit purchase form" do # render # # # Run the generator again with the --webrat flag if you want to use webrat matchers # assert_select "form", :action => purchases_path(@purchase), :method => "post" do # assert_select "input#purchase_title", :name => "purchase[title]" # assert_select "textarea#purchase_description", :name => "purchase[description]" # assert_select "input#purchase_warranty_duration", :name => "purchase[warranty_duration]" # end # end # end