require 'spec_helper' describe "appointments/edit" do before(:each) do @appointment = assign(:appointment, stub_model(Appointment)) end it "renders the edit appointment form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form[action=?][method=?]", appointment_path(@appointment), "post" do end end end