From c37abb64151e18461cb739ed4658d912a7c752e8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 5 Apr 2008 18:56:08 +0000 Subject: Inline images alt attribute set to the attachment description. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1328 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/fixtures/attachments.yml | 1 + test/functional/wiki_controller_test.rb | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/fixtures/attachments.yml b/test/fixtures/attachments.yml index 509475c97..162d44720 100644 --- a/test/fixtures/attachments.yml +++ b/test/fixtures/attachments.yml @@ -34,5 +34,6 @@ attachments_003: container_type: WikiPage filesize: 280 filename: logo.gif + description: This is a logo author_id: 2 \ No newline at end of file diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index 68e52600f..bf31e6614 100644 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -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 -- cgit v1.2.3