Commit ac3f1c3a

mo k <mo@mokhan.ca>
2012-08-01 02:43:55
add missing routing specs for creation cropping.
1 parent 7962e3d
Changed files (1)
spec/routing/creations_routing_spec.rb
@@ -34,5 +34,11 @@ describe CreationsController do
       { :delete => "/creations/1" }.should route_to(:controller => "creations", :action => "destroy", :id => "1")
     end
 
+    it "routes to crop" do
+      get('/creations/crop/1').should route_to("creations#crop", :id => "1", :method => "GET")
+    end
+    it "routes to crop update" do
+      post('/creations/crop_update/1').should route_to("creations#crop_update", :id => "1", :method => "POST")
+    end
   end
 end