Commit 269e2484

mo khan <mo@mokhan.ca>
2013-06-22 05:17:11
fix routing spec
1 parent af194fa
Changed files (1)
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