require 'sinatra_baseapp' require 'test/unit' require 'rack/test' class SintraStaticAssetsXHTMLTest < Test::Unit::TestCase include Rack::Test::Methods def app Sinatra::XHTML.new end def test_image_tag_closes get '/image_tag' assert last_response.ok? assert_equal last_response.body, "" end def test_link_tag_closes get '/link_tag' assert last_response.ok? assert_equal last_response.body, "" end end