Commit ef499683

mo k <mo@mokhan.ca>
2012-08-01 02:21:44
add profiles routing specs.
1 parent 778a707
spec/routing/categories_routing_spec.rb
@@ -2,11 +2,9 @@ require "spec_helper"
 
 describe CategoriesController do
   describe "routing" do
-
     it "routes to #show" do
       get("/categories/fondant").should route_to("categories#show", :id => "fondant", :method => 'GET')
     end
-
   end
 end
 
spec/routing/profiles_routing_spec.rb
@@ -0,0 +1,17 @@
+require 'spec_helper'
+describe ProfilesController do
+  describe "routing" do
+    it "routes to index" do
+      get('/profiles/').should route_to("profiles#index", :method => "GET")
+    end
+    it "routes to #show" do
+      get("/profiles/1").should route_to("profiles#show", :id => "1", :method => 'GET')
+    end
+    it "routes to my profile" do
+      get("mine").should route_to("profiles#mine", :method => 'GET')
+    end
+    it "routes to my favorites" do
+      get("favorites").should route_to("profiles#favorites", :method => "GET")
+    end
+  end
+end