require File.dirname(__FILE__) + '/../test_helper'
class DisplayHelperTest < Test::Unit::TestCase
include DisplayHelper
include ActionView::Helpers::TagHelper
#### product_path related tests ####
# TODO: product_path has no tests!
#### txt2html related tests ####
should 'show txt line-breaks' do
html = txt2html "Bli\n123"
assert_equal "Bli\n
\n123", html
html = txt2html "Bli\n123 456\nabc"
assert_equal "Bli\n
\n123 456\n
\nabc", html
end
should 'replace empty lines as paragraphs separators' do
html = txt2html "Bli\n\n123"
assert_equal "Bli\n