require File.dirname(__FILE__) + '/helper' begin fail LoadError, "rdiscount not available" if defined? JRuby require 'rdiscount' class MarkdownTest < Test::Unit::TestCase def markdown_app(&block) mock_app do set :views, File.dirname(__FILE__) + '/views' get '/', &block end get '/' end it 'renders inline markdown strings' do markdown_app { markdown '# Hiya' } assert ok? assert_equal "