Commit 269e2484
Changed files (1)
spec
routing
spec/routing/categories_routing_spec.rb
@@ -3,7 +3,8 @@ require "spec_helper"
describe CategoriesController do
describe "routing" do
it "routes to #show" do
- get("/categories/fondant").should route_to({"id"=>"fondant", "controller"=>"categories", "action"=>"show"})
+ get("/categories/fondant").should route_to({:slug => "fondant", :controller => "categories", :action => "show"})
+ get("/categories/fondant/page/1").should route_to({:slug => "fondant", :controller => "categories", :action => "show", :page => "1"})
end
end
end