summaryrefslogtreecommitdiffstats
path: root/bootstraptest/test_io.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-21 05:47:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-21 05:47:12 +0000
commit31e7747b6bcd6e13a60848f51dcd71d154778d67 (patch)
treeb724185f18f370755cb8264d89b205881cd8f4bb /bootstraptest/test_io.rb
parent370ed6a27156bc782bf173fa7aa5a17562215e5e (diff)
downloadruby-31e7747b6bcd6e13a60848f51dcd71d154778d67.tar.gz
ruby-31e7747b6bcd6e13a60848f51dcd71d154778d67.tar.xz
ruby-31e7747b6bcd6e13a60848f51dcd71d154778d67.zip
* io.c (argf_set_encoding): uses current_file after check for next
input. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_io.rb')
-rw-r--r--bootstraptest/test_io.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/bootstraptest/test_io.rb b/bootstraptest/test_io.rb
index 4974a1eeb..07211050a 100644
--- a/bootstraptest/test_io.rb
+++ b/bootstraptest/test_io.rb
@@ -69,3 +69,7 @@ assert_equal 'ok', %q{
File.unlink(tmpname)
:ok
}
+
+assert_normal_exit %q{
+ ARGF.set_encoding "foo"
+}