mirror of
				https://github.com/redmine/redmine.git
				synced 2025-10-31 18:36:07 +01:00 
			
		
		
		
	Refactor: convert WikiController to a REST resource
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4303 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
		| @@ -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", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user