From 736896b0c837852fd9074b4c2f3353a237946ff2 Mon Sep 17 00:00:00 2001 From: Lee Jarvis Date: Thu, 23 May 2013 16:17:53 +0100 Subject: [PATCH] Support running tests on Minitest version 5 --- test/xslt/test_custom_functions.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/xslt/test_custom_functions.rb b/test/xslt/test_custom_functions.rb index a5758f1308..5e3e950ad8 100644 --- a/test/xslt/test_custom_functions.rb +++ b/test/xslt/test_custom_functions.rb @@ -63,6 +63,10 @@ def test_function_arguments skip("Pure Java version doesn't support this feature.") if !Nokogiri.uses_libxml? foo = Class.new do include MiniTest::Assertions + # Minitest 5 uses `self.assertions` in `assert()` which is not + # defined in the Minitest::Assertions module :-( + attr_writer :assertions + def assertions; @assertions ||= 0; end def multiarg *args assert_equal ["abc", "xyz"], args