Sha256: c7e354440caada5ddcb5512a51d72e204d16b65aa2aa2654f75d0d422a4c1044
Contents?: true
Size: 913 Bytes
Versions: 3
Compression:
Stored size: 913 Bytes
Contents
# Why: http://groups.google.com/group/cukes/browse_thread/thread/5682d41436e235d7 begin require 'minitest/unit' # Don't attempt to monkeypatch if the require succeeded but didn't # define the actual module. # # https://github.com/cucumber/cucumber/pull/93 # http://youtrack.jetbrains.net/issue/TW-17414 if defined?(MiniTest::Unit) class MiniTest::Unit class << self @@installed_at_exit = true end def run(*) 0 end end end rescue LoadError => ignore end # Do the same for Test::Unit begin require 'test/unit' # Don't attempt to monkeypatch if the require succeeded but didn't # define the actual module. # # https://github.com/cucumber/cucumber/pull/93 # http://youtrack.jetbrains.net/issue/TW-17414 if defined?(Test::Unit) module Test::Unit def self.run? true end end end rescue LoadError => ignore end
Version data entries
3 entries across 3 versions & 1 rubygems