summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-10-29 13:15:09 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-10-29 13:15:09 +0900
commit1820aeeeb209420e80851d65a42acf188893069b (patch)
tree804fde434a0edd2c688d2fcc024cdea13a999ebb
parentca5812fe4516a10cc687281f9e47e1a08449f1ab (diff)
tool/lib/minitest/unit.rb: add "omit" as an alias to "skip"
According to rdoc, test-unit provides omit instead of skip. This is a compatibility layer to make it work with both test-unit and tool/lib/minitest.
-rw-r--r--tool/lib/minitest/unit.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/lib/minitest/unit.rb b/tool/lib/minitest/unit.rb
index bd244d8e06..90d2da25f8 100644
--- a/tool/lib/minitest/unit.rb
+++ b/tool/lib/minitest/unit.rb
@@ -718,6 +718,8 @@ module MiniTest
raise MiniTest::Skip, msg, bt
end
+ alias omit skip
+
##
# Was this testcase skipped? Meant for #teardown.