diff options
author | rhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-29 05:47:08 +0000 |
---|---|---|
committer | rhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-29 05:47:08 +0000 |
commit | c763b612d10aac6a7149d5bf9ade83ac188093c0 (patch) | |
tree | 14610b695644c119a94f5e070c6b3b7ca9cd1442 | |
parent | de0050399eab6e62d03e72b642e9c7e412d20cbb (diff) | |
download | ruby-c763b612d10aac6a7149d5bf9ade83ac188093c0.tar.gz |
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/lib/test/unit/assertions.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lib/test/unit/assertions.rb b/test/lib/test/unit/assertions.rb index 91532e8ff8..22c3ebe700 100644 --- a/test/lib/test/unit/assertions.rb +++ b/test/lib/test/unit/assertions.rb @@ -452,6 +452,9 @@ EOT 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) { |