diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-23 23:12:57 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-23 23:12:57 +0000 |
commit | 774cf315e838216aa8b4c138173484aa2388c380 (patch) | |
tree | 9be3c41dd133ab1a383fac0fbca9161ebf4051b3 /test/psych/test_tainted.rb | |
parent | 0e0286404ff2a3b4298d1ebab65d0f351caf098e (diff) | |
download | ruby-774cf315e838216aa8b4c138173484aa2388c380.tar.gz |
* ext/psych/parser.c: set parser encoding based on the YAML input
rather than user configuration.
* test/psych/test_encoding.rb: corresponding tests.
* test/psych/test_parser.rb: ditto
* test/psych/test_tainted.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/psych/test_tainted.rb')
-rw-r--r-- | test/psych/test_tainted.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/psych/test_tainted.rb b/test/psych/test_tainted.rb index bf55d3b30e..00d220e825 100644 --- a/test/psych/test_tainted.rb +++ b/test/psych/test_tainted.rb @@ -121,7 +121,9 @@ module Psych t.binmode t.write string t.close - File.open(t.path) { |f| @parser.parse f } + File.open(t.path) { |f| + @parser.parse f + } t.close(true) end end |