diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index 8b887ecdb..70dc20668 100644 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -126,6 +126,13 @@ class WikiControllerTest < ActionController::TestCase assert_template 'edit' end + def test_show_should_not_show_history_without_permission + Role.anonymous.remove_permission! :view_wiki_edits + get :show, :project_id => 1, :id => 'Page with sections', :version => 2 + + assert_response 302 + end + def test_create_page @request.session[:user_id] = 2 put :update, :project_id => 1,