test/tilt_creoletemplate_test.rb in tilt-1.4.1 vs test/tilt_creoletemplate_test.rb in tilt-2.0.0.beta1
- old
+ new
@@ -1,17 +1,13 @@
-require 'contest'
+require 'test_helper'
require 'tilt'
begin
- require 'creole'
+ require 'tilt/creole'
- class CreoleTemplateTest < Test::Unit::TestCase
+ class CreoleTemplateTest < Minitest::Test
test "is registered for '.creole' files" do
assert_equal Tilt::CreoleTemplate, Tilt['test.creole']
- end
-
- test "registered for '.wiki' files" do
- assert Tilt.mappings['wiki'].include?(Tilt::CreoleTemplate)
end
test "compiles and evaluates the template on #render" do
template = Tilt::CreoleTemplate.new { |t| "= Hello World!" }
assert_equal "<h1>Hello World!</h1>", template.render