Actually mashing maps now, but not handling form post-back or making it pretty

This commit is contained in:
Dan Buch
2012-03-07 09:32:33 -05:00
parent dd73309ed1
commit b1e17869b1
22 changed files with 447 additions and 42 deletions

View File

@@ -0,0 +1,33 @@
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