summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-03-22 19:51:10 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-03-22 19:51:10 -0700
commit3e0c5df3134f2a28822c267aa55916322750b42a (patch)
tree26fe3d6b9028f3f1e33ff2862c7ed2481708deea /test
parent4110ae48f57b1eaa6e8caeffaf5a70f1e32f6973 (diff)
downloadpsych-3e0c5df3134f2a28822c267aa55916322750b42a.zip
fixing and deprecating load_documents
Diffstat (limited to 'test')
-rw-r--r--test/psych/test_psych.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/psych/test_psych.rb b/test/psych/test_psych.rb
index de51fc5..1d13056 100644
--- a/test/psych/test_psych.rb
+++ b/test/psych/test_psych.rb
@@ -13,10 +13,7 @@ class TestPsych < MiniTest::Unit::TestCase
end
def test_load_documents
- docs = []
- Psych.load_documents("--- foo\n...\n--- bar\n...") { |doc|
- docs << doc
- }
+ docs = Psych.load_documents("--- foo\n...\n--- bar\n...")
assert_equal %w{ foo bar }, docs
end