自分の編集レシピ ページが rspec を使用してレンダリングされることをテストしたいが、ルーティングは行われない
recipes/edit
レシピ/id/edit にルーティングされます (id は数字に置き換えられます)
私の現在のテストは次のようになります
describe "Show Edit Recipe Page" do
it "should display edit recipe page" do
get :edit
response.should be_success
response.should render_template(:edit)
end
end
このページを正しくテストするにはどうすればよいですか。現在、テストが失敗しています