diff options
Diffstat (limited to 'test/test_parser.rb')
-rw-r--r-- | test/test_parser.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_parser.rb b/test/test_parser.rb index e3f8cdb..b6313c0 100644 --- a/test/test_parser.rb +++ b/test/test_parser.rb @@ -85,6 +85,16 @@ class TestParser < Test::Unit::TestCase assert_nil( Plist::parse_xml( File.read('test/assets/commented.plist') ) ) end end + + def test_filename_or_xml_is_stringio + require 'stringio' + + str = StringIO.new + data = Plist::parse_xml(str) + + assert_nil data + end + end __END__ |