diff --git a/spec/routing/work_packages_spec.rb b/spec/routing/work_packages_spec.rb index bbe6cd3e92..8f5cc2ba6d 100644 --- a/spec/routing/work_packages_spec.rb +++ b/spec/routing/work_packages_spec.rb @@ -37,4 +37,15 @@ describe WorkPackagesController do :project_id => '1' ) end + it "should connect GET /work_packages/moves/:work_package_id to work_packages/moves#new" do + get("/work_packages/1/moves/new").should route_to( :controller => 'work_packages/moves', + :action => 'new', + :work_package_id => '1' ) + end + + it "should connect POST /work_packages/moves/:work_package_id to work_packages/moves#create" do + post("/work_packages/1/moves/").should route_to( :controller => 'work_packages/moves', + :action => 'create', + :work_package_id => '1' ) + end end