Skip to content

Instantly share code, notes, and snippets.

Created December 7, 2011 23:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1445234 to your computer and use it in GitHub Desktop.
Save anonymous/1445234 to your computer and use it in GitHub Desktop.
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