Skip to content

Commit

Permalink
- Removed $DEBUG handler that detected when test/unit and minitest we…
Browse files Browse the repository at this point in the history
…re both loaded. (tenderlove)

[git-p4: depot-paths = "//src/minitest/dev/": change = 8302]
  • Loading branch information
zenspider committed Mar 18, 2013
1 parent 7b2e19d commit ca5cbf2
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lib/minitest/unit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1393,16 +1393,3 @@ def teardown; end
end # module MiniTest

Minitest = MiniTest # :nodoc: because ugh... I typo this all the time

if $DEBUG then
module Test # :nodoc:
module Unit # :nodoc:
class TestCase # :nodoc:
def self.inherited x # :nodoc:
# this helps me ferret out porting issues
raise "Using minitest and test/unit in the same process: #{x}"
end
end
end
end
end

1 comment on commit ca5cbf2

@blowmage
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.