@@ -95,7 +95,9 class ApplicationHelperTest < HelperTestCase | |||
|
95 | 95 | 'Inline image: !logo.gif!' => 'Inline image: <img src="/attachments/download/3" title="This is a logo" alt="This is a logo" />', |
|
96 | 96 | 'Inline image: !logo.GIF!' => 'Inline image: <img src="/attachments/download/3" title="This is a logo" alt="This is a logo" />', |
|
97 | 97 | 'No match: !ogo.gif!' => 'No match: <img src="ogo.gif" alt="" />', |
|
98 | 'No match: !ogo.GIF!' => 'No match: <img src="ogo.GIF" alt="" />' | |
|
98 | 'No match: !ogo.GIF!' => 'No match: <img src="ogo.GIF" alt="" />', | |
|
99 | # link image | |
|
100 | '!logo.gif!:http://foo.bar/' => '<a href="http://foo.bar/"><img src="/attachments/download/3" title="This is a logo" alt="This is a logo" /></a>', | |
|
99 | 101 | } |
|
100 | 102 | attachments = Attachment.find(:all) |
|
101 | 103 | to_test.each { |text, result| assert_equal "<p>#{result}</p>", textilizable(text, :attachments => attachments) } |
General Comments 0
You need to be logged in to leave comments.
Login now