# File lib/mocha/detection/test_unit.rb, line 12 def self.version version = '1.0.0' if testcase begin require 'test/unit/version' # rubocop:disable Lint/HandleExceptions rescue LoadError end # rubocop:enable Lint/HandleExceptions if defined?(::Test::Unit::VERSION) version = ::Test::Unit::VERSION end end version end