Now supporting Test::Unit as well under Ruby 1.9.

This commit is contained in:
Jim Weirich
2010-08-16 16:56:42 -04:00
parent f2ac27f52e
commit 6365c8d61d

View File

@@ -51,7 +51,11 @@ module EdgeCase
end
in_ruby_version("1.9") do
AssertionError = MiniTest::Assertion
if defined?(MiniTest)
AssertionError = MiniTest::Assertion
else
AssertionError = Test::Unit::AssertionFailedError
end
end
def initialize