You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
box-o-sand/rails/map-mash/spec/routing/mash_tournaments_routing_sp...

34 lines
1.3 KiB

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