summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authormo k <mo@mokhan.ca>2012-07-31 20:43:55 -0600
committermo k <mo@mokhan.ca>2012-07-31 20:43:55 -0600
commitac3f1c3a674080ce33a6bae31571bbf427d4fa19 (patch)
treee299c2245b397404c7f7de832ee83456b1bf06f3 /spec
parent7962e3d00340fb80f44f77e299edf69b9cf6fbcf (diff)
add missing routing specs for creation cropping.
Diffstat (limited to 'spec')
-rw-r--r--spec/routing/creations_routing_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/routing/creations_routing_spec.rb b/spec/routing/creations_routing_spec.rb
index d1020704..18ad46ad 100644
--- a/spec/routing/creations_routing_spec.rb
+++ b/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