summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/wiki_controller_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb
index 79ccb1c77..3e25be08e 100644
--- a/test/functional/wiki_controller_test.rb
+++ b/test/functional/wiki_controller_test.rb
@@ -161,6 +161,11 @@ class WikiControllerTest < ActionController::TestCase
assert_template 'edit'
end
+ def test_show_specific_version_of_an_unexistent_page_without_edit_right
+ get :show, :project_id => 1, :id => 'Unexistent page', :version => 1
+ assert_response 404
+ end
+
def test_show_unexistent_page_with_parent_should_preselect_parent
@request.session[:user_id] = 2
get :show, :project_id => 1, :id => 'Unexistent page', :parent => 'Another_page'