Sha256: cfa1a747a621da6c51c840345f8ff0f51499865f93acea75392eff3036cb99ed
Contents?: true
Size: 766 Bytes
Versions: 2
Compression:
Stored size: 766 Bytes
Contents
require "spec_helper" describe UsersController do describe "routing" do it "routes to #index" do get("/users").should route_to("users#index") end it "routes to #new" do get("/users/new").should route_to("users#new") end it "routes to #show" do get("/users/1").should route_to("users#show", id: "1") end it "routes to #edit" do get("/users/1/edit").should route_to("users#edit", id: "1") end it "routes to #create" do post("/users").should route_to("users#create") end it "routes to #update" do put("/users/1").should route_to("users#update", id: "1") end it "routes to #destroy" do delete("/users/1").should route_to("users#destroy", id: "1") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stuffer-0.0.4 | spec/teststuff/spec/routing/users_routing_spec.rb |
stuffer-0.0.3 | spec/teststuff/spec/routing/users_routing_spec.rb |