summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-01-05 08:03:06 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-01-05 08:03:06 +0000
commit05e897896a7e2b55ef4d78465d1d0e912e179b74 (patch)
tree88fceabda29819e5e1b5e49976ad515211e9318b /test/integration
parent077ddfbea3d9ef77a8dd8ac5c65b94f68300ffc1 (diff)
downloadredmine-05e897896a7e2b55ef4d78465d1d0e912e179b74.tar.gz
redmine-05e897896a7e2b55ef4d78465d1d0e912e179b74.zip
test: route: add tests of timelogs report global scope format route and issues scope routes
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8515 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/routing/timelog_test.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/integration/routing/timelog_test.rb b/test/integration/routing/timelog_test.rb
index d4e2bc703..948b415b2 100644
--- a/test/integration/routing/timelog_test.rb
+++ b/test/integration/routing/timelog_test.rb
@@ -183,6 +183,9 @@ class RoutingTimelogsTest < ActionController::IntegrationTest
{ :controller => 'timelog', :action => 'destroy', :id => '55',
:issue_id => '234', :project_id => 'ecookbook' }
)
+ end
+
+ def test_timelogs_report
assert_routing(
{ :method => 'get',
:path => "/time_entries/report" },
@@ -190,6 +193,22 @@ class RoutingTimelogsTest < ActionController::IntegrationTest
)
assert_routing(
{ :method => 'get',
+ :path => "/time_entries/report.csv" },
+ { :controller => 'timelog', :action => 'report', :format => 'csv' }
+ )
+ assert_routing(
+ { :method => 'get',
+ :path => "/issues/234/time_entries/report" },
+ { :controller => 'timelog', :action => 'report', :issue_id => '234' }
+ )
+ assert_routing(
+ { :method => 'get',
+ :path => "/issues/234/time_entries/report.csv" },
+ { :controller => 'timelog', :action => 'report', :issue_id => '234',
+ :format => 'csv' }
+ )
+ assert_routing(
+ { :method => 'get',
:path => "/projects/567/time_entries/report" },
{ :controller => 'timelog', :action => 'report', :project_id => '567' }
)