Closed btm closed 12 years ago
I'm sorry but I think this patch is not right. As I said in the ticket, that depends on the Minitest version but not in the ruby version. You can upgrade Minitest in your ruby 1.9.2 installation and this handler will work as expected.
Except that MiniTest::Unit is in Ruby 1.9. I get the same error under Ruby 1.9.2p318 if I have the minitest gem version 2.12.0 (latest) installed as I do with no minitest gem installed at all.
Alternately if you wanted to prefer the gem you could add:
require 'rubygems'
gem 'minitest'
To the top of minitest-chef-handler.rb. This would then make rubygems a requirement. I've tested this solution working on Ruby 1.9.2-p318 with minitest 2.12.0.
I've released a new version that solves this problem for users that have old versions of minitest installed.
Thanks for the report and the patch.
Workaround run method naming on Ruby 1.9.2 for MiniTest::Unit._run, closes #3