require 'spec_helper' describe "domains/edit.html.erb" do before(:each) do @domain = assign(:domain, stub_model(Domain)) end it "renders the edit domain form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form", :action => domains_path(@domain), :method => "post" do end end end