3 describe SpeachesController do
6 it "routes to #index" do
7 get("/speaches").should route_to("speaches#index")
10 it "routes to #new" do
11 get("/speaches/new").should route_to("speaches#new")
14 it "routes to #show" do
15 get("/speaches/1").should route_to("speaches#show", :id => "1")
18 it "routes to #edit" do
19 get("/speaches/1/edit").should route_to("speaches#edit", :id => "1")
22 it "routes to #create" do
23 post("/speaches").should route_to("speaches#create")
26 it "routes to #update" do
27 put("/speaches/1").should route_to("speaches#update", :id => "1")
30 it "routes to #destroy" do
31 delete("/speaches/1").should route_to("speaches#destroy", :id => "1")