box-o-sand/map-mash/spec/routing/maps_routing_spec.rb
Dan Buch d834b81003 Add 'map-mash/' from commit '7f16409d1257e7471fef35c18bcdf32856b908e3'
git-subtree-dir: map-mash
git-subtree-mainline: eacc351b17
git-subtree-split: 7f16409d12
2013-01-09 23:59:47 -05:00

34 lines
1.1 KiB
Ruby

require 'spec_helper'
describe MapsController do
describe "routing" do
it "recognizes and generates #index" do
{ :get => "/maps" }.should route_to(:controller => "maps", :action => "index")
end
it "recognizes and generates #new" do
{ :get => "/maps/new" }.should route_to(:controller => "maps", :action => "new")
end
it "recognizes and generates #show" do
{ :get => "/maps/1" }.should route_to(:controller => "maps", :action => "show", :id => "1")
end
it "recognizes and generates #edit" do
{ :get => "/maps/1/edit" }.should route_to(:controller => "maps", :action => "edit", :id => "1")
end
it "recognizes and generates #create" do
{ :post => "/maps" }.should route_to(:controller => "maps", :action => "create")
end
it "recognizes and generates #update" do
{ :put => "/maps/1" }.should route_to(:controller => "maps", :action => "update", :id => "1")
end
it "recognizes and generates #destroy" do
{ :delete => "/maps/1" }.should route_to(:controller => "maps", :action => "destroy", :id => "1")
end
end
end