[前][次][番号順一覧][スレッド一覧]

ruby-changes:58495

From: Yusuke <ko1@a...>
Date: Tue, 29 Oct 2019 14:27:27 +0900 (JST)
Subject: [ruby-changes:58495] 1820aeeeb2 (master): tool/lib/minitest/unit.rb: add "omit" as an alias to "skip"

https://git.ruby-lang.org/ruby.git/commit/?id=1820aeeeb2

From 1820aeeeb209420e80851d65a42acf188893069b Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Tue, 29 Oct 2019 13:15:09 +0900
Subject: 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.

diff --git a/tool/lib/minitest/unit.rb b/tool/lib/minitest/unit.rb
index bd244d8..90d2da2 100644
--- a/tool/lib/minitest/unit.rb
+++ b/tool/lib/minitest/unit.rb
@@ -718,6 +718,8 @@ module MiniTest https://github.com/ruby/ruby/blob/trunk/tool/lib/minitest/unit.rb#L718
       raise MiniTest::Skip, msg, bt
     end
 
+    alias omit skip
+
     ##
     # Was this testcase skipped? Meant for #teardown.
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]