Sha256: 0b104064e6cef5770893ccc6a99c43d40eb4ff920c51c538df662c9f993d6417
Contents?: true
Size: 1.08 KB
Versions: 39
Compression:
Stored size: 1.08 KB
Contents
require "spec_helper" describe ProfilesController do describe "routing" do it "recognizes and generates #index" do { get: "/profiles" }.should route_to(controller: "profiles", action: "index") end it "recognizes and generates #new" do { get: "/profiles/new" }.should route_to(controller: "profiles", action: "new") end it "recognizes and generates #show" do { get: "/profiles/1" }.should route_to(controller: "profiles", action: "show", id: "1") end it "recognizes and generates #edit" do { get: "/profiles/1/edit" }.should route_to(controller: "profiles", action: "edit", id: "1") end it "recognizes and generates #create" do { post: "/profiles" }.should route_to(controller: "profiles", action: "create") end it "recognizes and generates #update" do { put: "/profiles/1" }.should route_to(controller: "profiles", action: "update", id: "1") end it "recognizes and generates #destroy" do { delete: "/profiles/1" }.should route_to(controller: "profiles", action: "destroy", id: "1") end end end
Version data entries
39 entries across 38 versions & 2 rubygems