mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 17:30:43 -07: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
@@ -1,6 +1,6 @@
|
||||
require 'test_helper'
|
||||
|
||||
class I18nUnitTest < Test::Unit::TestCase
|
||||
class I18nUnitTest < Minitest::Test
|
||||
include Liquid
|
||||
|
||||
def setup
|
||||
@@ -20,13 +20,13 @@ class I18nUnitTest < Test::Unit::TestCase
|
||||
end
|
||||
|
||||
# def test_raises_translation_error_on_undefined_interpolation_key
|
||||
# assert_raise I18n::TranslationError do
|
||||
# assert_raises I18n::TranslationError do
|
||||
# @i18n.translate("whatever", :oopstypos => "yes")
|
||||
# end
|
||||
# end
|
||||
|
||||
def test_raises_unknown_translation
|
||||
assert_raise I18n::TranslationError do
|
||||
assert_raises I18n::TranslationError do
|
||||
@i18n.translate("doesnt_exist")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user