Sha256: ae6bf1c111190742426bdc8c8d5f1b754ef6faf2b7a5db46d1dbe98c19dfe9e6
Contents?: true
Size: 778 Bytes
Versions: 17
Compression:
Stored size: 778 Bytes
Contents
require "spec_helper" describe PagesController do describe "routing" do it "routes to #index" do get("/pages").should route_to("pages#index") end it "routes to #new" do get("/pages/new").should route_to("pages#new") end it "routes to #show" do get("/pages/1").should route_to("pages#show", :id => "1") end it "routes to #edit" do get("/pages/1/edit").should route_to("pages#edit", :id => "1") end it "routes to #create" do post("/pages").should route_to("pages#create") end it "routes to #update" do put("/pages/1").should route_to("pages#update", :id => "1") end it "routes to #destroy" do delete("/pages/1").should route_to("pages#destroy", :id => "1") end end end
Version data entries
17 entries across 17 versions & 2 rubygems