3 describe RolesController do
6 it "recognizes and generates #index" do
7 { :get => "/roles" }.should route_to(:controller => "roles", :action => "index")
10 it "recognizes and generates #new" do
11 { :get => "/roles/new" }.should route_to(:controller => "roles", :action => "new")
14 it "recognizes and generates #show" do
15 { :get => "/roles/1" }.should route_to(:controller => "roles", :action => "show", :id => "1")
18 it "recognizes and generates #edit" do
19 { :get => "/roles/1/edit" }.should route_to(:controller => "roles", :action => "edit", :id => "1")
22 it "recognizes and generates #create" do
23 { :post => "/roles" }.should route_to(:controller => "roles", :action => "create")
26 it "recognizes and generates #update" do
27 { :put => "/roles/1" }.should route_to(:controller => "roles", :action => "update", :id => "1")
30 it "recognizes and generates #destroy" do
31 { :delete => "/roles/1" }.should route_to(:controller => "roles", :action => "destroy", :id => "1")