mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/test/unit.rb (assert_include): add alias.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
58b325366d
commit
7f46fadd9d
10 changed files with 20 additions and 15 deletions
|
@ -3,14 +3,14 @@ require 'tmpdir'
|
|||
|
||||
class TestNotImplement < Test::Unit::TestCase
|
||||
def test_respond_to_fork
|
||||
assert_includes(Process.methods, :fork)
|
||||
assert_include(Process.methods, :fork)
|
||||
if /linux/ =~ RUBY_PLATFORM
|
||||
assert_equal(true, Process.respond_to?(:fork))
|
||||
end
|
||||
end
|
||||
|
||||
def test_respond_to_lchmod
|
||||
assert_includes(File.methods, :lchmod)
|
||||
assert_include(File.methods, :lchmod)
|
||||
if /linux/ =~ RUBY_PLATFORM
|
||||
assert_equal(false, File.respond_to?(:lchmod))
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue