Re-namespacing a bit to clear out some fairly old stuff from the top level

This commit is contained in:
Dan Buch
2013-01-22 19:10:10 -05:00
parent ab43fb0146
commit 92f7543872
485 changed files with 0 additions and 0 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

View File

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

View File

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