summaryrefslogtreecommitdiff
path: root/test/ruby/test_io_m17n.rb
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-24 17:14:06 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-24 17:14:06 +0000
commit6c1bfbe478c5b7698ba9c96e61a2a597b44d4d16 (patch)
tree991351e4fbea13ce26b571f502555bac8a9ce007 /test/ruby/test_io_m17n.rb
parent7b298723b08e30d336f6172a6d4f6d9dea3a5a8e (diff)
Fix tests of rb_warning().
* test/ruby/envutil.rb (Test::Unit::Assertions#assert_warning) (Test::Unit::Assertions#assert_warn), test/ruby/envutil.rb, test/ruby/test_enumerator.rb, test/ruby/test_io_m17n.rb, test/ruby/test_regexp.rb, test/ruby/test_syntax.rb: assert_warn() and assert_warning() are reversed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_io_m17n.rb')
-rw-r--r--test/ruby/test_io_m17n.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb
index 3cc84374be3..becafaa201f 100644
--- a/test/ruby/test_io_m17n.rb
+++ b/test/ruby/test_io_m17n.rb
@@ -989,24 +989,24 @@ EOT
#bug5568 = '[ruby-core:40727]'
bug6324 = '[ruby-core:44455]'
open(__FILE__, "r") do |f|
- assert_warn('', bug6324) {
+ assert_warning('', bug6324) {
f.set_encoding("eucjp:euc-jp")
}
- assert_warn('', bug6324) {
+ assert_warning('', bug6324) {
f.set_encoding("eucjp", "euc-jp")
}
- assert_warn('', bug6324) {
+ assert_warning('', bug6324) {
f.set_encoding(Encoding::EUC_JP, "euc-jp")
}
- assert_warn('', bug6324) {
+ assert_warning('', bug6324) {
f.set_encoding("eucjp", Encoding::EUC_JP)
}
- assert_warn('', bug6324) {
+ assert_warning('', bug6324) {
f.set_encoding(Encoding::EUC_JP, Encoding::EUC_JP)
}
nonstr = Object.new
def nonstr.to_str; "eucjp"; end
- assert_warn('', bug6324) {
+ assert_warning('', bug6324) {
f.set_encoding(nonstr, nonstr)
}
end