test/tilt_sasstemplate_test.rb in tilt-1.4.1 vs test/tilt_sasstemplate_test.rb in tilt-2.0.0.beta1

- old
+ new

@@ -1,12 +1,12 @@ -require 'contest' +require 'test_helper' require 'tilt' begin - require 'sass' + require 'tilt/sass' - class SassTemplateTest < Test::Unit::TestCase + class SassTemplateTest < Minitest::Test test "is registered for '.sass' files" do assert_equal Tilt::SassTemplate, Tilt['test.sass'] end test "compiles and evaluates the template on #render" do @@ -18,10 +18,10 @@ template = Tilt::SassTemplate.new { |t| "#main\n :background-color #0000f1" } 3.times { assert_equal "#main {\n background-color: #0000f1; }\n", template.render } end end - class ScssTemplateTest < Test::Unit::TestCase + class ScssTemplateTest < Minitest::Test test "is registered for '.scss' files" do assert_equal Tilt::ScssTemplate, Tilt['test.scss'] end test "compiles and evaluates the template on #render" do