summaryrefslogtreecommitdiffstats
path: root/test/functional/projects_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-28 07:43:22 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-28 07:43:22 +0000
commit552926772ad5426f620c733b04a997bdd793151a (patch)
treea04b689cec69798ead5c7322f25721e5879814d9 /test/functional/projects_controller_test.rb
parent6671a0c5050ea22435c01272c1b60fa1858136a1 (diff)
downloadredmine-552926772ad5426f620c733b04a997bdd793151a.tar.gz
redmine-552926772ad5426f620c733b04a997bdd793151a.zip
Error raised on project settings after project wiki is deleted (#18429).
git-svn-id: http://svn.redmine.org/redmine/trunk@13660 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r--test/functional/projects_controller_test.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb
index 726148dad..6a564acdc 100644
--- a/test/functional/projects_controller_test.rb
+++ b/test/functional/projects_controller_test.rb
@@ -408,6 +408,20 @@ class ProjectsControllerTest < ActionController::TestCase
assert_response 302
end
+ def test_setting_with_wiki_module_and_no_wiki
+ Project.find(1).wiki.destroy
+ Role.find(1).add_permission! :manage_wiki
+ @request.session[:user_id] = 2
+
+ get :settings, :id => 1
+ assert_response :success
+ assert_template 'settings'
+
+ assert_select 'form[action=?]', '/projects/ecookbook/wiki' do
+ assert_select 'input[name=?]', 'wiki[start_page]'
+ end
+ end
+
def test_update
@request.session[:user_id] = 2 # manager
post :update, :id => 1, :project => {:name => 'Test changed name',