Sha256: 94b82812b66ee2ab9bf70694341ba4c04b55b2037f93dae28f74c0712b599b18
Contents?: true
Size: 1.22 KB
Versions: 17
Compression:
Stored size: 1.22 KB
Contents
require "spec_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
17 entries across 17 versions & 1 rubygems