summaryrefslogtreecommitdiffstats
path: root/test/integration/routing_test.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-10-21 16:07:28 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-10-21 16:07:28 +0000
commitc259ada6e1c46b0c7c21bd11bc1a0659da1ede9e (patch)
tree25fc76b565d0b95375b245d7bc8e5897afc881e2 /test/integration/routing_test.rb
parentd3381fb518d79f815407ffc70d27cbda4208fc9e (diff)
downloadredmine-c259ada6e1c46b0c7c21bd11bc1a0659da1ede9e.tar.gz
redmine-c259ada6e1c46b0c7c21bd11bc1a0659da1ede9e.zip
Refactor: rename WikiController#index to #show, it's a single resource action
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4266 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/routing_test.rb')
-rw-r--r--test/integration/routing_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/routing_test.rb b/test/integration/routing_test.rb
index 00ab7b38f..f44d3c94e 100644
--- a/test/integration/routing_test.rb
+++ b/test/integration/routing_test.rb
@@ -311,8 +311,8 @@ class RoutingTest < ActionController::IntegrationTest
end
context "wiki (singular, project's pages)" do
- should_route :get, "/projects/567/wiki", :controller => 'wiki', :action => 'index', :project_id => '567'
- should_route :get, "/projects/567/wiki/lalala", :controller => 'wiki', :action => 'index', :project_id => '567', :page => 'lalala'
+ should_route :get, "/projects/567/wiki", :controller => 'wiki', :action => 'show', :project_id => '567'
+ should_route :get, "/projects/567/wiki/lalala", :controller => 'wiki', :action => 'show', :project_id => '567', :page => 'lalala'
should_route :get, "/projects/567/wiki/my_page/edit", :controller => 'wiki', :action => 'edit', :project_id => '567', :page => 'my_page'
should_route :get, "/projects/1/wiki/CookBook_documentation/history", :controller => 'wiki', :action => 'history', :project_id => '1', :page => 'CookBook_documentation'
should_route :get, "/projects/1/wiki/CookBook_documentation/diff/2/vs/1", :controller => 'wiki', :action => 'diff', :project_id => '1', :page => 'CookBook_documentation', :version => '2', :version_from => '1'