test/test_formatting.rb in ClothRed-0.1.0 vs test/test_formatting.rb in ClothRed-0.2.0
- old
+ new
@@ -22,15 +22,15 @@
["<cite>citation</cite>", "??citation??"],
["<code>ClothRed#to_textile</code>", "@ClothRed#to_textile@"],
["<del>delete</del>", "-delete-"], ["<ins>underline</ins>", "+underline+"],
["<sup>superscript</sup>","^superscript^"], ["<sub>subscript</sub>","~subscript~"]
]
-
+
def test_textformatting
FORMATTING_STRINGS.each do |html, textile|
test_html = ClothRed.new(html)
result = test_html.to_textile
- assert_equal(textile,result.to_s)
+ assert_equal(textile,result)
end
end
end
\ No newline at end of file