diff options
| author | mo k <mo@mokhan.ca> | 2012-07-31 20:43:55 -0600 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-07-31 20:43:55 -0600 |
| commit | ac3f1c3a674080ce33a6bae31571bbf427d4fa19 (patch) | |
| tree | e299c2245b397404c7f7de832ee83456b1bf06f3 /spec | |
| parent | 7962e3d00340fb80f44f77e299edf69b9cf6fbcf (diff) | |
add missing routing specs for creation cropping.
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/routing/creations_routing_spec.rb | 6 |
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 |
