mirror of
https://github.com/kemko/liquid.git
synced 2026-01-06 10:15:40 +03:00
tests: switch to minitest
Ruby 1.9+ uses Minitest as the backend for Test::Unit. As of Minitest 5, the shim has broken some compatibility with Test::Unit::TestCase in some scenarios. Adjusts the test suite to support Minitest 5's syntax. Minitest versions 4 and below do not support the newer Minitest::Test class that arrived in version 5. For that case, use the MiniTest::Unit::TestCase class as a fallback Conflicts: test/integration/tags/for_tag_test.rb test/test_helper.rb
This commit is contained in:
committed by
Florian Weingarten
parent
a8e63ff03d
commit
ee4295c889
@@ -100,14 +100,12 @@ class RealEnumerableDrop < Liquid::Drop
|
||||
end
|
||||
end
|
||||
|
||||
class DropsTest < Test::Unit::TestCase
|
||||
class DropsTest < Minitest::Test
|
||||
include Liquid
|
||||
|
||||
def test_product_drop
|
||||
assert_nothing_raised do
|
||||
tpl = Liquid::Template.parse( ' ' )
|
||||
tpl.render!('product' => ProductDrop.new)
|
||||
end
|
||||
tpl = Liquid::Template.parse( ' ' )
|
||||
assert_equal ' ', tpl.render!('product' => ProductDrop.new)
|
||||
end
|
||||
|
||||
def test_drop_does_only_respond_to_whitelisted_methods
|
||||
|
||||
Reference in New Issue
Block a user