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