aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-26 13:02:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-26 13:02:33 +0000
commit30f266fb515fefc89cc1db274c70cdb624405806 (patch)
tree9497ee8bfba5624f9e1b067309455ccef5e2a87f /test
parent35570696a3f6c925e831d7501c04b3a45eca103c (diff)
downloadruby-30f266fb515fefc89cc1db274c70cdb624405806.tar.gz
test: use assert_include
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/cgi/test_cgi_header.rb2
-rw-r--r--test/openssl/test_pair.rb4
-rw-r--r--test/ruby/test_time_tz.rb2
3 files changed, 4 insertions, 4 deletions
diff --git a/test/cgi/test_cgi_header.rb b/test/cgi/test_cgi_header.rb
index b1a0b41856..c420e7978b 100644
--- a/test/cgi/test_cgi_header.rb
+++ b/test/cgi/test_cgi_header.rb
@@ -147,7 +147,7 @@ class CGIHeaderTest < Test::Unit::TestCase
date = /^Date: ([A-Z][a-z]{2}, \d{2} [A-Z][a-z]{2} \d{4} \d\d:\d\d:\d\d GMT)\r\n/
[actual1, actual2, actual3].each do |actual|
assert_match(date, actual)
- assert_includes(time_start..time_end, date =~ actual && Time.parse($1).to_i)
+ assert_include(time_start..time_end, date =~ actual && Time.parse($1).to_i)
actual.sub!(date, "Date: DATE_IS_REMOVED\r\n")
end
## assertion
diff --git a/test/openssl/test_pair.rb b/test/openssl/test_pair.rb
index b90b4de372..5750f3b7df 100644
--- a/test/openssl/test_pair.rb
+++ b/test/openssl/test_pair.rb
@@ -497,13 +497,13 @@ module OpenSSL::TestPairM
until th.join(0.01)
accepted = s2.accept_nonblock(exception: false)
- assert_includes([s2, :wait_readable, :wait_writable ], accepted)
+ assert_include([s2, :wait_readable, :wait_writable ], accepted)
end
rets = th.value
assert_instance_of Array, rets
rets.each do |rv|
- assert_includes([s1, :wait_readable, :wait_writable ], rv)
+ assert_include([s1, :wait_readable, :wait_writable ], rv)
end
ensure
th.join if th
diff --git a/test/ruby/test_time_tz.rb b/test/ruby/test_time_tz.rb
index b40b1aca91..20a57fe7dd 100644
--- a/test/ruby/test_time_tz.rb
+++ b/test/ruby/test_time_tz.rb
@@ -390,7 +390,7 @@ End
]
}
}
- assert_includes(results, [true, true, true, true, true])
+ assert_include(results, [true, true, true, true, true])
}
end