diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_notimp.rb | 4 | ||||
-rw-r--r-- | test/ruby/test_pack.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_rand.rb | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_notimp.rb b/test/ruby/test_notimp.rb index dfe51683c9..c29119eac9 100644 --- a/test/ruby/test_notimp.rb +++ b/test/ruby/test_notimp.rb @@ -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 diff --git a/test/ruby/test_pack.rb b/test/ruby/test_pack.rb index 054fa82567..6ce16a2aa1 100644 --- a/test/ruby/test_pack.rb +++ b/test/ruby/test_pack.rb @@ -139,7 +139,7 @@ class TestPack < Test::Unit::TestCase def test_integer_endian s = [1].pack("s") - assert_includes(["\0\1", "\1\0"], s) + assert_include(["\0\1", "\1\0"], s) if s == "\0\1" _integer_big_endian() else diff --git a/test/ruby/test_rand.rb b/test/ruby/test_rand.rb index 5ff2fe5e68..b3dc6959c7 100644 --- a/test/ruby/test_rand.rb +++ b/test/ruby/test_rand.rb @@ -357,7 +357,7 @@ END end v = r.rand(3.1..4) assert_instance_of(Float, v, '[ruby-core:24679]') - assert_includes(3.1..4, v) + assert_include(3.1..4, v) now = Time.now assert_equal(now, r.rand(now..now)) |