- updated minitest to 5.0
- Removed Test::Unit::TestCase and started using Minitest::Test instead
- Fixed usage of assert_raise
- Fixed usage of refute_nil
- Fixed and removed usage of assert_nothing_raised
The exception handler was only catching RuntimeError, which probably
should not be caught by the harness (so a test fails), when it should
have been catching LoadError exceptions (module not present to test).
Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
It does so by including a Mixin into the the returned string offering a content_type method. Therefore all of the following examples produce the expected results:
# text/html
get('/') do
haml :index
end
# text/css
get('/') do
sass :index
end
# text/css
get('/') do
haml :index
sass :index
end
# text/html
get('/') do
haml '= sass :index'
end
It also allows setting the default content type for a template engine:
set :builder, :content_type => :html
Tests and README adjustments (all languages) included.