Permalink
Browse files

don't need to rescue a loaderror since we're not requiring a lib

  • Loading branch information...
1 parent 37a3185 commit 4db1223a1ada9c12d17f6043e684881f6aca0328 @rtomayko committed Jan 29, 2010
Showing with 7 additions and 12 deletions.
  1. +7 −12 test/tilt_htmltemplate_test.rb
@@ -1,18 +1,13 @@
require 'contest'
require 'tilt'
-begin
- class HTMLTemplateTest < Test::Unit::TestCase
- test "is registered for '.html' files" do
- assert_equal Tilt::HTMLTemplate, Tilt['test.html']
- end
+class HTMLTemplateTest < Test::Unit::TestCase
+ test "is registered for '.html' files" do
+ assert_equal Tilt::HTMLTemplate, Tilt['test.html']
+ end
- test "compiling and evaluating the template with #render" do
- template = Tilt::HTMLTemplate.new { |t| "<html><head></head><body>Hello World!</body></html>" }
- assert_equal "<html><head></head><body>Hello World!</body></html>", template.render
- end
+ test "compiling and evaluating the template with #render" do
+ template = Tilt::HTMLTemplate.new { |t| "<html><head></head><body>Hello World!</body></html>" }
+ assert_equal "<html><head></head><body>Hello World!</body></html>", template.render
end
-rescue LoadError => boom
- warn "Tilt::HTMLTemplate (disabled)\n"
end
-

0 comments on commit 4db1223

Please sign in to comment.