blob: e514d158036d88b478e65daa0d714f730ec371dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
require "spec_helper"
describe ServersController do
describe "routing" do
it "routes to #index" do
get("/servers").should route_to("servers#index")
end
it "routes to #new" do
get("/servers/new").should route_to("servers#new")
end
it "routes to #show" do
get("/servers/1").should route_to("servers#show", :id => "1")
end
it "routes to #edit" do
get("/servers/1/edit").should route_to("servers#edit", :id => "1")
end
it "routes to #create" do
post("/servers").should route_to("servers#create")
end
it "routes to #update" do
put("/servers/1").should route_to("servers#update", :id => "1")
end
it "routes to #destroy" do
delete("/servers/1").should route_to("servers#destroy", :id => "1")
end
end
end
|