Inline images alt attribute set to the attachment description.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1328 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-04-05 18:56:08 +00:00
parent c6271d8361
commit c37abb6415
3 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -45,7 +45,8 @@ class WikiControllerTest < Test::Unit::TestCase
assert_tag :tag => 'h1', :content => /Another page/
# Included page with an inline image
assert_tag :tag => 'p', :content => /This is an inline image/
assert_tag :tag => 'img', :attributes => { :src => '/attachments/download/3' }
assert_tag :tag => 'img', :attributes => { :src => '/attachments/download/3',
:alt => 'This is a logo' }
end
def test_show_unexistent_page_without_edit_right