Fixed: Wiki export link doesn't work for users without :view_wiki_edits permission (#9682).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7971 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -45,6 +45,13 @@ class WikiControllerTest < ActionController::TestCase
|
||||
:child => { :tag => 'a', :attributes => { :href => '/projects/ecookbook/wiki/Page_with_an_inline_image' },
|
||||
:content => 'Page with an inline image' } }
|
||||
end
|
||||
|
||||
def test_export_link
|
||||
Role.anonymous.add_permission! :export_wiki_pages
|
||||
get :show, :project_id => 'ecookbook'
|
||||
assert_response :success
|
||||
assert_tag 'a', :attributes => {:href => '/projects/ecookbook/wiki/CookBook_documentation.txt'}
|
||||
end
|
||||
|
||||
def test_show_page_with_name
|
||||
get :show, :project_id => 1, :id => 'Another_page'
|
||||
|
||||
Reference in New Issue
Block a user