Skip to content

Commit

Permalink
Neuter both MiniTest::Unit and Test::Unit's overzealous test runners.
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Mar 21, 2011
1 parent 4f47460 commit 72b695d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
5 changes: 5 additions & 0 deletions History.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
== 0.10.2 (2011-03-21)

=== Bugfixes
* Neuter both MiniTest::Unit and Test::Unit's overzealous test runners. (Aslak Hellesøy)

== 0.10.1 (2011-03-20)

=== New Features
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,14 @@ def run(*)
end
rescue LoadError => ignore
end

# Do the same for Test::Unit
begin
require 'test/unit'
module Test::Unit
def self.run?
true
end
end
rescue LoadError => ignore
end
2 changes: 1 addition & 1 deletion lib/cucumber/platform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module Cucumber
unless defined?(Cucumber::VERSION)
VERSION = '0.10.1'
VERSION = '0.10.2'
BINARY = File.expand_path(File.dirname(__FILE__) + '/../../bin/cucumber')
LIBDIR = File.expand_path(File.dirname(__FILE__) + '/../../lib')
JRUBY = defined?(JRUBY_VERSION)
Expand Down
2 changes: 1 addition & 1 deletion lib/cucumber/runtime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Runtime
include Runtime::UserInterface

def initialize(configuration = Configuration.default)
require 'cucumber/core_ext/disable_mini_unit_autorun'
require 'cucumber/core_ext/disable_mini_and_test_unit_autorun'
@current_scenario = nil
@configuration = Configuration.parse(configuration)
@support_code = SupportCode.new(self, @configuration)
Expand Down

0 comments on commit 72b695d

Please sign in to comment.