##// END OF EJS Templates
Merged r7971 from trunk (#9682)....
Jean-Philippe Lang -
r7996:d19a0b70e0c3
parent child
Show More
@@ -46,8 +46,8
46 46 <% end %>
47 47
48 48 <% other_formats_links do |f| %>
49 <%= f.link_to 'HTML', :url => {:id => @page.title, :version => @content.version} %>
50 <%= f.link_to 'TXT', :url => {:id => @page.title, :version => @content.version} %>
49 <%= f.link_to 'HTML', :url => {:id => @page.title, :version => params[:version]} %>
50 <%= f.link_to 'TXT', :url => {:id => @page.title, :version => params[:version]} %>
51 51 <% end if User.current.allowed_to?(:export_wiki_pages, @project) %>
52 52
53 53 <% content_for :header_tags do %>
@@ -44,6 +44,13 class WikiControllerTest < ActionController::TestCase
44 44 :content => 'Page with an inline image' } }
45 45 end
46 46
47 def test_export_link
48 Role.anonymous.add_permission! :export_wiki_pages
49 get :show, :project_id => 'ecookbook'
50 assert_response :success
51 assert_tag 'a', :attributes => {:href => '/projects/ecookbook/wiki/CookBook_documentation.txt'}
52 end
53
47 54 def test_show_page_with_name
48 55 get :show, :project_id => 1, :id => 'Another_page'
49 56 assert_response :success
General Comments 0
You need to be logged in to leave comments. Login now