test/sinatra_app.rb in wbzyl-sinatra-static-assets-0.1.6 vs test/sinatra_app.rb in wbzyl-sinatra-static-assets-0.2.1

- old
+ new

@@ -1,5 +1,8 @@ +path = File.expand_path("../lib" + File.dirname(__FILE__)) +$:.unshift(path) unless $:.include?(path) + require 'rubygems' require 'sinatra' require 'sinatra/url_for' require 'sinatra/static_assets' @@ -15,7 +18,28 @@ get "/image_tag" do content_type "text/plain" <<"EOD" #{image_tag("/images/foo.jpg", :alt => "[foo image]")} +EOD +end + +get "/stylesheet_link_tag" do + content_type "text/plain" + <<"EOD" +#{stylesheet_link_tag("/stylesheets/winter.css", "/stylesheets/summer.css", :media => "projection")} +EOD +end + +get "/javascript_script_tag" do + content_type "text/plain" + <<"EOD" +#{javascript_script_tag "/javascripts/summer.js", :charset => "iso-8859-2"} +EOD +end + +get "/link_to_tag" do + content_type "text/plain" + <<"EOD" +#{link_to "Tatry Mountains Rescue Team", "/topr"} EOD end