summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-10-28 21:25:38 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-10-28 21:25:38 +0000
commitc514dd6885af45ebb38d00ba4a8c61b1ea206d2c (patch)
tree1427bc497e59c610fc4c622ff55ffbb8704c0142 /test/functional
parente7e7a91b857408557b037932de69f03c4bc6c9aa (diff)
downloadredmine-c514dd6885af45ebb38d00ba4a8c61b1ea206d2c.tar.gz
redmine-c514dd6885af45ebb38d00ba4a8c61b1ea206d2c.zip
Refactor: convert WikiController to a REST resource
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4303 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/wiki_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb
index 5bbeba9dc..4273dddd0 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 :update, :project_id => 1,
+ put :update, :project_id => 1,
:id => '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 :update, :project_id => 1,
+ put :update, :project_id => 1,
:id => 'New page',
:content => {:comments => 'Created the page',
:text => "h1. New page\n\nThis is a new page",