@@ -24,7 +24,7 xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do | |||
|
24 | 24 | xml.email(author.mail) if author.is_a?(User) && !author.mail.blank? && !author.pref.hide_mail |
|
25 | 25 | end if author |
|
26 | 26 | xml.content "type" => "html" do |
|
27 |
xml.text! textilizable(item |
|
|
27 | xml.text! textilizable(item, :event_description, :only_path => false) | |
|
28 | 28 | end |
|
29 | 29 | end |
|
30 | 30 | end |
@@ -23,7 +23,7 xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do | |||
|
23 | 23 | xml.text! '<li>' + show_detail(detail, false) + '</li>' |
|
24 | 24 | end |
|
25 | 25 | xml.text! '</ul>' |
|
26 |
xml.text! textilizable(change |
|
|
26 | xml.text! textilizable(change, :notes, :only_path => false) unless change.notes.blank? | |
|
27 | 27 | end |
|
28 | 28 | end |
|
29 | 29 | end |
@@ -109,4 +109,16 attachments_009: | |||
|
109 | 109 | filename: version_file.zip |
|
110 | 110 | author_id: 2 |
|
111 | 111 | content_type: application/octet-stream |
|
112 | attachments_010: | |
|
113 | created_on: 2006-07-19 21:07:27 +02:00 | |
|
114 | container_type: Issue | |
|
115 | container_id: 2 | |
|
116 | downloads: 0 | |
|
117 | disk_filename: 060719210727_picture.jpg | |
|
118 | digest: b91e08d0cf966d5c6ff411bd8c4cc3a2 | |
|
119 | id: 10 | |
|
120 | filesize: 452 | |
|
121 | filename: picture.jpg | |
|
122 | author_id: 2 | |
|
123 | content_type: image/jpeg | |
|
112 | 124 | No newline at end of file |
@@ -13,4 +13,11 journals_002: | |||
|
13 | 13 | journalized_type: Issue |
|
14 | 14 | user_id: 2 |
|
15 | 15 | journalized_id: 1 |
|
16 | journals_003: | |
|
17 | created_on: <%= 1.days.ago.to_date.to_s(:db) %> | |
|
18 | notes: "A comment with inline image: !picture.jpg!" | |
|
19 | id: 3 | |
|
20 | journalized_type: Issue | |
|
21 | user_id: 2 | |
|
22 | journalized_id: 2 | |
|
16 | 23 | No newline at end of file |
@@ -369,6 +369,14 class IssuesControllerTest < Test::Unit::TestCase | |||
|
369 | 369 | :descendant => { :tag => 'a', :content => /#4$/ } |
|
370 | 370 | end |
|
371 | 371 | |
|
372 | def test_show_atom | |
|
373 | get :show, :id => 2, :format => 'atom' | |
|
374 | assert_response :success | |
|
375 | assert_template 'changes.rxml' | |
|
376 | # Inline image | |
|
377 | assert @response.body.include?("<img src=\"http://test.host/attachments/download/10\" alt=\"\" />") | |
|
378 | end | |
|
379 | ||
|
372 | 380 | def test_new_routing |
|
373 | 381 | assert_routing( |
|
374 | 382 | {:method => :get, :path => '/projects/1/issues/new'}, |
General Comments 0
You need to be logged in to leave comments.
Login now