diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-10-18 15:27:49 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-10-18 15:27:49 +0000 |
commit | c06c22cf2e29dc0a4a0b2b9dd67a867b370a21f9 (patch) | |
tree | 421d11e577a2a2e4181ed50b9c3e8b90e83611fe /test | |
parent | fef21d5aa2d6108f39aa015ca29da31d888db026 (diff) | |
download | redmine-c06c22cf2e29dc0a4a0b2b9dd67a867b370a21f9.tar.gz redmine-c06c22cf2e29dc0a4a0b2b9dd67a867b370a21f9.zip |
Refactor: extract method from WikiController#special
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4261 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/wiki_controller_test.rb | 12 | ||||
-rw-r--r-- | test/integration/routing_test.rb | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index 37d5b8f88..7aea1b4ca 100644 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -284,6 +284,18 @@ class WikiControllerTest < ActionController::TestCase end end end + + context "GET :date_index" do + setup do + get :date_index, :id => 'ecookbook' + end + + should_respond_with :success + should_assign_to :pages + should_assign_to :pages_by_date + should_render_template 'wiki/date_index' + + end def test_not_found get :index, :id => 999 diff --git a/test/integration/routing_test.rb b/test/integration/routing_test.rb index f5cd432ac..ccb15bd53 100644 --- a/test/integration/routing_test.rb +++ b/test/integration/routing_test.rb @@ -319,7 +319,7 @@ class RoutingTest < ActionController::IntegrationTest should_route :get, "/projects/1/wiki/CookBook_documentation/annotate/2", :controller => 'wiki', :action => 'annotate', :id => '1', :page => 'CookBook_documentation', :version => '2' should_route :get, "/projects/22/wiki/ladida/rename", :controller => 'wiki', :action => 'rename', :id => '22', :page => 'ladida' should_route :get, "/projects/567/wiki/page_index", :controller => 'wiki', :action => 'page_index', :id => '567' - should_route :get, "/projects/567/wiki/date_index", :controller => 'wiki', :action => 'special', :id => '567', :page => 'date_index' + should_route :get, "/projects/567/wiki/date_index", :controller => 'wiki', :action => 'date_index', :id => '567' should_route :get, "/projects/567/wiki/export", :controller => 'wiki', :action => 'export', :id => '567' should_route :post, "/projects/567/wiki/my_page/edit", :controller => 'wiki', :action => 'edit', :id => '567', :page => 'my_page' |