diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-10-22 16:20:20 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-10-22 16:20:20 +0000 |
commit | cac3b1e5381d0756ba9bb6bcb356a4b081f3407d (patch) | |
tree | 0db0a74406411e65697abe5150d56465dcc51818 /test/functional/wiki_controller_test.rb | |
parent | 2fbf7bbcf1af756c4d0de3c7de96194376d33f1d (diff) | |
download | redmine-cac3b1e5381d0756ba9bb6bcb356a4b081f3407d.tar.gz redmine-cac3b1e5381d0756ba9bb6bcb356a4b081f3407d.zip |
Refactor: split WikiController#edit into #update
update will handle the saving and should be accessed via POST only.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4272 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/wiki_controller_test.rb')
-rw-r--r-- | test/functional/wiki_controller_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index cd8c3448d..61e265925 100644 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -80,7 +80,7 @@ class WikiControllerTest < ActionController::TestCase def test_create_page @request.session[:user_id] = 2 - post :edit, :project_id => 1, + post :update, :project_id => 1, :page => 'New page', :content => {:comments => 'Created the page', :text => "h1. New page\n\nThis is a new page", @@ -96,7 +96,7 @@ class WikiControllerTest < ActionController::TestCase @request.session[:user_id] = 2 assert_difference 'WikiPage.count' do assert_difference 'Attachment.count' do - post :edit, :project_id => 1, + post :update, :project_id => 1, :page => 'New page', :content => {:comments => 'Created the page', :text => "h1. New page\n\nThis is a new page", |