Commit ac3f1c3a
Changed files (1)
spec
routing
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