xml.email(author.mail) if author.is_a?(User) && !author.mail.blank? && !author.pref.hide_mail
end if author
xml.content "type" => "html" do
- xml.text! textilizable(item.event_description, :only_path => false)
+ xml.text! textilizable(item, :event_description, :only_path => false)
end
end
end
xml.text! '<li>' + show_detail(detail, false) + '</li>'
end
xml.text! '</ul>'
- xml.text! textilizable(change.notes) unless change.notes.blank?
+ xml.text! textilizable(change, :notes, :only_path => false) unless change.notes.blank?
end
end
end
filename: version_file.zip\r
author_id: 2\r
content_type: application/octet-stream\r
+attachments_010: \r
+ created_on: 2006-07-19 21:07:27 +02:00\r
+ container_type: Issue\r
+ container_id: 2\r
+ downloads: 0\r
+ disk_filename: 060719210727_picture.jpg\r
+ digest: b91e08d0cf966d5c6ff411bd8c4cc3a2\r
+ id: 10\r
+ filesize: 452\r
+ filename: picture.jpg\r
+ author_id: 2\r
+ content_type: image/jpeg\r
\ No newline at end of file
journalized_type: Issue\r
user_id: 2\r
journalized_id: 1\r
+journals_003: \r
+ created_on: <%= 1.days.ago.to_date.to_s(:db) %>\r
+ notes: "A comment with inline image: !picture.jpg!"\r
+ id: 3\r
+ journalized_type: Issue\r
+ user_id: 2\r
+ journalized_id: 2\r
\ No newline at end of file
: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?("<img src=\"http://test.host/attachments/download/10\" alt=\"\" />")
+ end
+
def test_new_routing
assert_routing(
{:method => :get, :path => '/projects/1/issues/new'},