lib/webmock/test_unit.rb in webmock-2.3.1 vs lib/webmock/test_unit.rb in webmock-2.3.2
- old
+ new
@@ -17,6 +17,6 @@
end
end
end
-WebMock::AssertionFailure.error_class = Test::Unit::AssertionFailedError
+WebMock::AssertionFailure.error_class = Test::Unit::AssertionFailedError rescue MiniTest::Assertion # ruby1.9 compat