summaryrefslogtreecommitdiffstats
path: root/test/unit/helpers/application_helper_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/helpers/application_helper_test.rb')
-rw-r--r--test/unit/helpers/application_helper_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index 14ca3cc64..cbdba5971 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -181,7 +181,9 @@ class ApplicationHelperTest < HelperTestCase
"<pre><code>\nline 1\nline2</code></pre>" => "<pre><code>\nline 1\nline2</code></pre>",
"<pre><div>content</div></pre>" => "<pre>&lt;div&gt;content&lt;/div&gt;</pre>",
"HTML comment: <!-- no comments -->" => "<p>HTML comment: &lt;!-- no comments --&gt;</p>",
- "<!-- opening comment" => "<p>&lt;!-- opening comment</p>"
+ "<!-- opening comment" => "<p>&lt;!-- opening comment</p>",
+ # remove attributes
+ "<pre class='foo'>some text</pre>" => "<pre>some text</pre>",
}
to_test.each { |text, result| assert_equal result, textilizable(text) }
end