Sha256: 8d3ea2dafd15abd86e41212903b07b402ebefe3b75d3b87d2e633abe05e4ab8e
Contents?: true
Size: 1.15 KB
Versions: 14
Compression:
Stored size: 1.15 KB
Contents
require "spec_helper" describe EntitiesController do describe "routing" do it "recognizes and generates #index" do { :get => "/entities" }.should route_to(:controller => "entities", :action => "index") end it "recognizes and generates #new" do { :get => "/entities/new" }.should route_to(:controller => "entities", :action => "new") end it "recognizes and generates #show" do { :get => "/entities/1" }.should route_to(:controller => "entities", :action => "show", :id => "1") end it "recognizes and generates #edit" do { :get => "/entities/1/edit" }.should route_to(:controller => "entities", :action => "edit", :id => "1") end it "recognizes and generates #create" do { :post => "/entities" }.should route_to(:controller => "entities", :action => "create") end it "recognizes and generates #update" do { :put => "/entities/1" }.should route_to(:controller => "entities", :action => "update", :id => "1") end it "recognizes and generates #destroy" do { :delete => "/entities/1" }.should route_to(:controller => "entities", :action => "destroy", :id => "1") end end end
Version data entries
14 entries across 11 versions & 1 rubygems