diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-03-22 21:15:02 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-03-22 21:15:02 -0700 |
commit | 668fbbe73c6706b40060f457418b8045c16a667b (patch) | |
tree | b292723926ec75c032c721eebcf40aef8ba1f0b4 /test/psych/test_psych.rb | |
parent | 3e0c5df3134f2a28822c267aa55916322750b42a (diff) | |
download | psych-668fbbe73c6706b40060f457418b8045c16a667b.zip |
adding more syck compatible methods
Diffstat (limited to 'test/psych/test_psych.rb')
-rw-r--r-- | test/psych/test_psych.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/psych/test_psych.rb b/test/psych/test_psych.rb index 1d13056..ceb0d5d 100644 --- a/test/psych/test_psych.rb +++ b/test/psych/test_psych.rb @@ -17,6 +17,11 @@ class TestPsych < MiniTest::Unit::TestCase assert_equal %w{ foo bar }, docs end + def test_parse_stream + docs = Psych.parse_stream("--- foo\n...\n--- bar\n...") + assert_equal %w{ foo bar }, docs.children.map { |x| x.transform } + end + def test_add_builtin_type got = nil Psych.add_builtin_type 'omap', do |type, val| |