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.
34 lines
1.1 KiB
34 lines
1.1 KiB
13 years ago
|
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
|