FIxed: inline images not displayed in atom feeds (#3391).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2768 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2009-05-26 08:28:36 +00:00
parent 5db407ca59
commit c082cfc90e
5 changed files with 29 additions and 2 deletions

View File

@@ -369,6 +369,14 @@ class IssuesControllerTest < Test::Unit::TestCase
:descendant => { :tag => 'a', :content => /#4$/ }
end
def test_show_atom
get :show, :id => 2, :format => 'atom'
assert_response :success
assert_template 'changes.rxml'
# Inline image
assert @response.body.include?("&lt;img src=\"http://test.host/attachments/download/10\" alt=\"\" /&gt;")
end
def test_new_routing
assert_routing(
{:method => :get, :path => '/projects/1/issues/new'},