Skip to content

Commit

Permalink
Prevent MiniTest::Unit#autorun from running in at_exit hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Oct 12, 2010
1 parent 8b388d6 commit 00db9be
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions History.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
== In Git

=== Bugfixes
* Prevent MiniTest::Unit#autorun from running in at_exit hook. (Aslak Hellesøy)
* Fixed incorect --help for --strict. It fails on both pending and undefined. (Aslak Hellesøy)

== 0.9.2 (2010-10-04)
Expand Down
1 change: 1 addition & 0 deletions lib/cucumber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
require 'cucumber/cli/main'
require 'cucumber/broadcaster'
require 'cucumber/step_definitions'
require 'cucumber/core_ext/disable_mini_unit_autorun'

module Cucumber
class << self
Expand Down
10 changes: 10 additions & 0 deletions lib/cucumber/core_ext/disable_mini_unit_autorun.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Why: http://groups.google.com/group/cukes/browse_thread/thread/5682d41436e235d7
begin
require 'minitest/unit'
class MiniTest::Unit
class << self
@@installed_at_exit = true
end
end
rescue LoadError => ignore
end

0 comments on commit 00db9be

Please sign in to comment.