summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2017-11-05 19:09:05 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2017-11-05 19:09:05 +0000
commite438523e785b8f1c772b4a6a594fc1c3cacd5e76 (patch)
tree4bd54a527d11c9b5f28c707544b28569a8b46a5e /test
parent4c51d637616af48169d55970138f98e9db3a707d (diff)
downloadredmine-e438523e785b8f1c772b4a6a594fc1c3cacd5e76.tar.gz
redmine-e438523e785b8f1c772b4a6a594fc1c3cacd5e76.zip
remove unused WikisController#edit (#26579)
git-svn-id: http://svn.redmine.org/redmine/trunk@17018 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/wikis_controller_test.rb41
-rw-r--r--test/integration/routing/wikis_test.rb2
2 files changed, 0 insertions, 43 deletions
diff --git a/test/functional/wikis_controller_test.rb b/test/functional/wikis_controller_test.rb
index 8f37cd0f0..2570f4bfd 100644
--- a/test/functional/wikis_controller_test.rb
+++ b/test/functional/wikis_controller_test.rb
@@ -24,47 +24,6 @@ class WikisControllerTest < Redmine::ControllerTest
User.current = nil
end
- def test_create
- @request.session[:user_id] = 1
- assert_nil Project.find(3).wiki
-
- assert_difference 'Wiki.count' do
- post :edit, :params => {:id => 3, :wiki => { :start_page => 'Start page' }}, :xhr => true
- assert_response :success
- assert_equal 'text/javascript', response.content_type
- end
-
- wiki = Project.find(3).wiki
- assert_not_nil wiki
- assert_equal 'Start page', wiki.start_page
- end
-
- def test_create_with_failure
- @request.session[:user_id] = 1
-
- assert_no_difference 'Wiki.count' do
- post :edit, :params => {:id => 3, :wiki => { :start_page => '' }}, :xhr => true
- assert_response :success
- assert_equal 'text/javascript', response.content_type
- end
-
- assert_include 'errorExplanation', response.body
- assert_include "Start page cannot be blank", response.body
- end
-
- def test_update
- @request.session[:user_id] = 1
-
- assert_no_difference 'Wiki.count' do
- post :edit, :params => {:id => 1, :wiki => { :start_page => 'Other start page' }}, :xhr => true
- assert_response :success
- assert_equal 'text/javascript', response.content_type
- end
-
- wiki = Project.find(1).wiki
- assert_equal 'Other start page', wiki.start_page
- end
-
def test_get_destroy_should_ask_confirmation
@request.session[:user_id] = 1
assert_no_difference 'Wiki.count' do
diff --git a/test/integration/routing/wikis_test.rb b/test/integration/routing/wikis_test.rb
index ef4643f91..ebd241614 100644
--- a/test/integration/routing/wikis_test.rb
+++ b/test/integration/routing/wikis_test.rb
@@ -19,8 +19,6 @@ require File.expand_path('../../../test_helper', __FILE__)
class RoutingWikisTest < Redmine::RoutingTest
def test_wikis
- should_route 'POST /projects/foo/wiki' => 'wikis#edit', :id => 'foo'
-
should_route 'GET /projects/foo/wiki/destroy' => 'wikis#destroy', :id => 'foo'
should_route 'POST /projects/foo/wiki/destroy' => 'wikis#destroy', :id => 'foo'
end