Sha256: 56659dadb4c7fb19e5c6c0b5a3f82e898d31a5df2809ddaaeddb31357029c4e7
Contents?: true
Size: 631 Bytes
Versions: 1
Compression:
Stored size: 631 Bytes
Contents
require './test/test_helper' require './test/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, "<img src=\"/images/foo.jpg\"/>" end def test_link_tag_closes get '/link_tag' assert last_response.ok? assert_equal last_response.body, "<link charset=\"utf-8\" href=\"/stylesheets/winter.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\"/>" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sinatra-static-assets-1.0.3 | test/sinatra_static_assets_xhtml_test.rb |