Created
December 7, 2011 23:18
-
-
Save anonymous/1445234 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/minitest/excludes.rb b/lib/minitest/excludes.rb | |
index fe1fc98..0eb15cb 100644 | |
--- a/lib/minitest/excludes.rb | |
+++ b/lib/minitest/excludes.rb | |
@@ -40,7 +40,7 @@ class MiniTest::Unit::TestCase | |
# Exclude a test from a testcase. This is intended to be used by | |
# exclusion files. | |
- def self.exclude name, reason | |
+ def self.exclude name, reason = nil | |
return warn "Method #{self}##{name} is not defined" unless | |
method_defined? name | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment