diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-09-15 16:50:25 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-09-15 16:50:25 +0000 |
commit | be6e0927f3ce95e751bd3c6f4a61de6979898012 (patch) | |
tree | a71c41d3f1f19ef60418f945fcb70494a39a516c /test/integration/routing_test.rb | |
parent | cdfc57d5442f72d62437f52af480049c943ecbf8 (diff) | |
download | redmine-be6e0927f3ce95e751bd3c6f4a61de6979898012.tar.gz redmine-be6e0927f3ce95e751bd3c6f4a61de6979898012.zip |
Refactor: Split VersionsController#edit into #edit and #update
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4088 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/routing_test.rb')
-rw-r--r-- | test/integration/routing_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/integration/routing_test.rb b/test/integration/routing_test.rb index 38c1b2a0e..ba4948008 100644 --- a/test/integration/routing_test.rb +++ b/test/integration/routing_test.rb @@ -251,10 +251,16 @@ class RoutingTest < ActionController::IntegrationTest should_route :post, "/users/567/memberships/12/destroy", :controller => 'users', :action => 'destroy_membership', :id => '567', :membership_id => '12' end + # TODO: should they all be scoped under /projects/:project_id ? context "versions" do should_route :get, "/projects/foo/versions/new", :controller => 'versions', :action => 'new', :project_id => 'foo' + should_route :get, "/versions/show/1", :controller => 'versions', :action => 'show', :id => '1' + should_route :get, "/versions/edit/1", :controller => 'versions', :action => 'edit', :id => '1' should_route :post, "/projects/foo/versions/new", :controller => 'versions', :action => 'new', :project_id => 'foo' + should_route :post, "/versions/update/1", :controller => 'versions', :action => 'update', :id => '1' + + should_route :delete, "/versions/destroy/1", :controller => 'versions', :action => 'destroy', :id => '1' end context "wiki (singular, project's pages)" do |