File: test_stringio.rb

package info (click to toggle)
ruby-psych 5.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 864 kB
  • sloc: ruby: 7,947; ansic: 925; java: 846; makefile: 14; sh: 4
file content (14 lines) | stat: -rw-r--r-- 345 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true
require_relative 'helper'

module Psych
  class TestStringIO < TestCase
    # The superclass of StringIO before Ruby 3.0 was `Data`,
    # which can interfere with the Ruby 3.2+ `Data` dumping.
    def test_stringio
      assert_nothing_raised do
        Psych.dump(StringIO.new("foo"))
      end
    end
  end
end