Converted Rates routing test to Test::Unit.

This commit is contained in:
Eric Davis
2010-07-23 08:18:37 -07:00
parent 5b372b2bef
commit 44963ac96b
2 changed files with 16 additions and 59 deletions
+16
View File
@@ -0,0 +1,16 @@
require "#{File.dirname(__FILE__)}/../test_helper"
class RoutingTest < ActionController::IntegrationTest
context "routing rates" do
should_route :get, "/rates", :controller => "rates", :action => "index"
should_route :get, "/rates/new", :controller => "rates", :action => "new"
should_route :get, "/rates/1", :controller => "rates", :action => "show", :id => "1"
should_route :get, "/rates/1/edit", :controller => "rates", :action => "edit", :id => "1"
should_route :post, "/rates", :controller => "rates", :action => "create"
should_route :put, "/rates/1", :controller => "rates", :action => "update", :id => "1"
should_route :delete, "/rates/1", :controller => "rates", :action => "destroy", :id => "1"
end
end