Skip to content

Commit c102881

Browse files
committed
Ignore gem load failure during test startup
This assumes you have loaded minitest yourself. RubyGems will fail on the next require or on the constant lookup if you didn't do it right. Fixes #313
1 parent 1f1e5a7 commit c102881

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

History.rdoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
* Fixed footer links to rubyforge and darkfish. Pull request #328 by
4949
@blackwinter
5050
* Fixed page-top link. Pull request #329 by @blackwinter
51+
* Minitest gem activation failures are now ignored during test startup.
52+
Issue #313 by Vít Ondruch.
5153

5254
=== 4.1.2 / 2014-09-05
5355

lib/rdoc/test_case.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
begin
44
gem 'minitest', '~> 4.0' unless defined?(Test::Unit)
5-
rescue NoMethodError
5+
rescue NoMethodError, Gem::LoadError
66
# for ruby tests
77
end
88

0 commit comments

Comments
 (0)