<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1 +1 @@
-&lt;%= @body %&gt;
+&lt;%= textilizable(@body, :only_path =&gt; false, :wiki_links =&gt; :remote) %&gt;</diff>
      <filename>app/views/system_notification_mailer/system_notification.text.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -21,7 +21,11 @@ describe SystemNotificationMailer, 'system_notification' do
   end
   
   it 'should use the body from the object' do
-    @mail.encoded.should match(/#{ @system_notification.body }/)
+    @mail.encoded.should match(/#{ Regexp.escape(@system_notification.body) }/)
+  end
+
+  it 'should render the textile content into HTML' do
+    @mail.encoded.should match(/&lt;strong&gt;textile&lt;\/strong&gt;/)
   end
   
   it 'should use the Current user as the reply to' do</diff>
      <filename>spec/models/system_notification_mailer_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -56,7 +56,7 @@ module SystemNotificationSpecHelper
     user1 = mock_model(User, :mail =&gt; 'user1@example.com')
     user2 = mock_model(User, :mail =&gt; 'user2@example.com')
     return { 
-      :body =&gt; 'a body',
+      :body =&gt; 'a body with some *textile*\n\nAnd some extra lines',
       :subject =&gt; 'a subject line',
       :users =&gt; [user1, user2]
     }</diff>
      <filename>spec/spec_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5a85b7a5fc6ad824ffd5f941201dff39347e758d</id>
    </parent>
  </parents>
  <author>
    <name>Eric Davis</name>
    <email>edavis@littlestreamsoftware.com</email>
  </author>
  <url>http://github.com/edavis10/redmine-system-notification-plugin/commit/add6ab147db0c5f36d95f2057f4248df7fba452a</url>
  <id>add6ab147db0c5f36d95f2057f4248df7fba452a</id>
  <committed-date>2009-03-24T22:51:10-07:00</committed-date>
  <authored-date>2009-03-24T22:51:10-07:00</authored-date>
  <message>[#2313] Added HTML support to emails using Redmine's textile methods.</message>
  <tree>124aeda8155cc2518cf33f12553584024eb537c6</tree>
  <committer>
    <name>Eric Davis</name>
    <email>edavis@littlestreamsoftware.com</email>
  </committer>
</commit>
