ruby-changes:43953
From: rhe <ko1@a...>
Date: Mon, 29 Aug 2016 14:47:16 +0900 (JST)
Subject: [ruby-changes:43953] rhe:r56025 (trunk): assertions.rb: add an alias pend for skip
rhe 2016-08-29 14:47:08 +0900 (Mon, 29 Aug 2016) New Revision: 56025 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56025 Log: assertions.rb: add an alias pend for skip * test/lib/test/unit/assertions.rb (pend): Add an alias 'pend' for 'skip'. This is required for test-unit compatibility. In particular, ext/openssl uses it. Modified files: trunk/test/lib/test/unit/assertions.rb Index: test/lib/test/unit/assertions.rb =================================================================== --- test/lib/test/unit/assertions.rb (revision 56024) +++ test/lib/test/unit/assertions.rb (revision 56025) @@ -452,6 +452,9 @@ EOT https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit/assertions.rb#L452 assert(failed.empty?, message(m) {failed.pretty_inspect}) end + # compatiblity with test-unit + alias pend skip + def assert_valid_syntax(code, fname = caller_locations(1, 1)[0], mesg = fname.to_s, verbose: nil) code = code.b code.sub!(/\A(?:\xef\xbb\xbf)?(\s*\#.*$)*(\n)?/n) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/