sinatra/test
Konstantin Haase b23a6febc5 Set encoding for inline templates correctly.
* If Ruby version is not encoding aware, do nothing
* If file contains a magic comment in the first line, use that encoding
* Otherwise use settings.default_encoding

Allows one to use unicode characters without having to escape them and deploy
on Linux systems, like Heroku, on 1.9.2 (on OSX encodings always default to
UTF-8, which makes it hard to spot this issue before deployment).

Fixes #136.
2010-12-13 11:40:17 +01:00
..
public Base enables static by default if public is set and exists 2010-01-28 08:04:43 -08:00
views Added slim support 2010-10-29 14:27:50 +02:00
base_test.rb Less warnings to sate zenspider's needs 2009-05-18 03:36:03 -07:00
builder_test.rb Sets default content type according to template engine used instead of just text/html. 2010-09-27 13:25:10 +02:00
coffee_test.rb Sets default content type according to template engine used instead of just text/html. 2010-09-27 13:25:10 +02:00
contest.rb Less warnings to sate zenspider's needs 2009-05-18 03:36:03 -07:00
encoding_test.rb Avoid setting Encoding.default_external and default_internal. 2010-10-21 18:41:40 +02:00
erb_test.rb Use contest instead of test/spec/mini 2009-03-31 02:23:48 -07:00
erubis_test.rb Revert "remove erubis test (let tilt handle this)" 2010-01-28 07:42:19 -08:00
extensions_test.rb Get rid of Default 2009-10-18 01:18:53 +02:00
filter_test.rb Allow changing request.path_info in a before filter that has a pattern. Fixes #114. 2010-11-04 20:08:24 +01:00
haml_test.rb skip haml / sass tests when they fail to load due to stupid bullshit 2010-03-15 19:23:58 -07:00
hello.mab Add markaby helper method. Tilt supports Markaby for quite some time now, but it was not as easy to use as haml or erb, and not documented. Tests and documentation (English and German) included. 2010-09-12 17:00:33 +02:00
helper.rb Sets default content type according to template engine used instead of just text/html. 2010-09-27 13:25:10 +02:00
helpers_test.rb In send_file: Do not override Content-Type if already set and no explicit type 2010-12-08 12:01:24 +01:00
less_test.rb Sets default content type according to template engine used instead of just text/html. 2010-09-27 13:25:10 +02:00
liquid_test.rb Add liquid helper method. Tilt supports liquid for quite some time now, but it was not as easy to use as haml or erb, and not documented. Tests and documentation (English and German) included. 2010-09-11 13:54:01 +02:00
mapped_error_test.rb error handlers always override raise_errors option 2010-03-04 05:40:18 -08:00
markaby_test.rb Add support for passing a block to the markaby method: 2010-11-12 14:27:23 -06:00
markdown_test.rb Skip rdiscount tests on JRuby. 2010-09-12 23:21:48 +02:00
middleware_test.rb Get rid of Default 2009-10-18 01:18:53 +02:00
nokogiri_test.rb Add nokogiri helper method. Tilt supports Nokogiri for quite some time now, but it was not as easy to use as builder, and not documented. Tests and documentation included. 2010-10-10 13:53:43 +02:00
radius_test.rb Add radius helper method. Tilt supports radius for quite some time now, but it was not as easy to use as haml or erb, and not documented. Tests and documentation (English and German) included. 2010-09-12 15:14:45 +02:00
rdoc_test.rb Add rdoc helper method. Tilt supports RDoc for quite some time now, but it was not as easy to use as haml or erb, and not documented. Tests and documentation (English and German) included. 2010-09-12 13:59:00 +02:00
request_test.rb require stringio in request_test, fixes GH #51 2010-09-01 12:18:22 +02:00
response_test.rb Use contest instead of test/spec/mini 2009-03-31 02:23:48 -07:00
result_test.rb Use contest instead of test/spec/mini 2009-03-31 02:23:48 -07:00
route_added_hook_test.rb Added proc as argument for #route_added hook 2009-04-19 20:04:50 -07:00
routing_test.rb Sets default content type according to template engine used instead of just text/html. 2010-09-27 13:25:10 +02:00
sass_test.rb Sets default content type according to template engine used instead of just text/html. 2010-09-27 13:25:10 +02:00
scss_test.rb Sets default content type according to template engine used instead of just text/html. 2010-09-27 13:25:10 +02:00
server_test.rb using -b over -h option from cli for bind address 2010-02-04 17:16:05 -08:00
settings_test.rb Only run error handlers if show_excetions is set to :after_handler, not when it is set to true. 2010-10-12 22:27:56 +02:00
sinatra_test.rb changed access to @template_cache to a reader. 2010-05-27 05:24:47 +08:00
slim_test.rb Fix slim options test 2010-11-06 10:25:47 +01:00
static_test.rb Rename test_valid_range to assert_valid_range 2010-10-19 16:26:43 +02:00
templates_test.rb Set encoding for inline templates correctly. 2010-12-13 11:40:17 +01:00
textile_test.rb Add textile helper method. Tilt supports textile for quite some time now, but it was not as easy to use as haml or erb, and not documented. Tests and documentation (English and German) included. 2010-09-11 14:53:04 +02:00