summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2022-01-15 09:16:04 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-01-17 10:39:24 +0900
commit3515867381e34a04f2d64086ac283cd9536a8b20 (patch)
treec76347143cfbae4f662cce50addb46c9487554a4
parentac1bb6b51032ad8d34a1060f5f6b5b10b60dc183 (diff)
Removed skip alias in test suite
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5446
-rw-r--r--tool/lib/test/unit/assertions.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/tool/lib/test/unit/assertions.rb b/tool/lib/test/unit/assertions.rb
index 3deeb8fcdc..6345a625c1 100644
--- a/tool/lib/test/unit/assertions.rb
+++ b/tool/lib/test/unit/assertions.rb
@@ -513,11 +513,9 @@ module Test
end
alias omit pend
- # TODO: Removed this and enabled to raise NoMethodError with skip
- alias skip pend
- # def skip(msg = nil, bt = caller)
- # raise NoMethodError, "use omit or pend", caller
- # end
+ def skip(msg = nil, bt = caller)
+ raise NoMethodError, "use omit or pend", caller
+ end
##
# Was this testcase skipped? Meant for #teardown.