diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-10-07 15:51:09 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-10-07 15:51:09 +0000 |
commit | 068771ea0764e326d720455c87e6c8cbc0f825a3 (patch) | |
tree | a79f34bf8471a43b3d0829507bdfcd8b716eba63 /test/integration | |
parent | e59156b446f1e402c95d04c39374630f2913b611 (diff) | |
download | redmine-068771ea0764e326d720455c87e6c8cbc0f825a3.tar.gz redmine-068771ea0764e326d720455c87e6c8cbc0f825a3.zip |
Refactor: extract TimelogController#new from #edit
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4239 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/routing_test.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/integration/routing_test.rb b/test/integration/routing_test.rb index d8d036853..3ba01cdc1 100644 --- a/test/integration/routing_test.rb +++ b/test/integration/routing_test.rb @@ -233,11 +233,12 @@ class RoutingTest < ActionController::IntegrationTest should_route :get, "/issues/234/time_entries.atom", :controller => 'timelog', :action => 'index', :issue_id => '234', :format => 'atom' should_route :get, "/projects/ecookbook/issues/123/time_entries", :controller => 'timelog', :action => 'index', :project_id => 'ecookbook', :issue_id => '123' - should_route :get, "/issues/567/time_entries/new", :controller => 'timelog', :action => 'edit', :issue_id => '567' - should_route :get, "/projects/ecookbook/time_entries/new", :controller => 'timelog', :action => 'edit', :project_id => 'ecookbook' - should_route :get, "/projects/ecookbook/issues/567/time_entries/new", :controller => 'timelog', :action => 'edit', :project_id => 'ecookbook', :issue_id => '567' + should_route :get, "/issues/567/time_entries/new", :controller => 'timelog', :action => 'new', :issue_id => '567' + should_route :get, "/projects/ecookbook/time_entries/new", :controller => 'timelog', :action => 'new', :project_id => 'ecookbook' + should_route :get, "/projects/ecookbook/issues/567/time_entries/new", :controller => 'timelog', :action => 'new', :project_id => 'ecookbook', :issue_id => '567' should_route :get, "/time_entries/22/edit", :controller => 'timelog', :action => 'edit', :id => '22' + should_route :post, "/time_entries/22/edit", :controller => 'timelog', :action => 'edit', :id => '22' should_route :post, "/time_entries/55/destroy", :controller => 'timelog', :action => 'destroy', :id => '55' end |