Sha256: a3936d8264e04c3671b59e28aa2fe8e8a704716ac3632b88ba26c44200d04bd6
Contents?: true
Size: 1.05 KB
Versions: 27
Compression:
Stored size: 1.05 KB
Contents
require 'rails_helper' describe AgentsController do describe "routing" do it "recognizes and generates #index" do { get: "/agents" }.should route_to(controller: "agents", action: "index") end it "recognizes and generates #new" do { get: "/agents/new" }.should route_to(controller: "agents", action: "new") end it "recognizes and generates #show" do { get: "/agents/1" }.should route_to(controller: "agents", action: "show", id: "1") end it "recognizes and generates #edit" do { get: "/agents/1/edit" }.should route_to(controller: "agents", action: "edit", id: "1") end it "recognizes and generates #create" do { post: "/agents" }.should route_to(controller: "agents", action: "create") end it "recognizes and generates #update" do { put: "/agents/1" }.should route_to(controller: "agents", action: "update", id: "1") end it "recognizes and generates #destroy" do { delete: "/agents/1" }.should route_to(controller: "agents", action: "destroy", id: "1") end end end
Version data entries
27 entries across 27 versions & 1 rubygems