OSDN Git Service

import all source code
[pettanr/pettanr.git] / spec / routing / baloon_types_routing_spec.rb
1 require "spec_helper"
2
3 describe BaloonTypesController do
4   describe "routing" do
5
6     it "routes to #index" do
7       get("/baloon_types").should route_to("baloon_types#index")
8     end
9
10     it "routes to #new" do
11       get("/baloon_types/new").should route_to("baloon_types#new")
12     end
13
14     it "routes to #show" do
15       get("/baloon_types/1").should route_to("baloon_types#show", :id => "1")
16     end
17
18     it "routes to #edit" do
19       get("/baloon_types/1/edit").should route_to("baloon_types#edit", :id => "1")
20     end
21
22     it "routes to #create" do
23       post("/baloon_types").should route_to("baloon_types#create")
24     end
25
26     it "routes to #update" do
27       put("/baloon_types/1").should route_to("baloon_types#update", :id => "1")
28     end
29
30     it "routes to #destroy" do
31       delete("/baloon_types/1").should route_to("baloon_types#destroy", :id => "1")
32     end
33
34   end
35 end