Sha256: 8a5b9dfc8d00c74319e0b6041c4dc7b6442ab499fea04e233321e270d9a93f74
Contents?: true
Size: 1.23 KB
Versions: 8
Compression:
Stored size: 1.23 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
8 entries across 8 versions & 1 rubygems