summaryrefslogtreecommitdiff
path: root/test/psych/test_stringio.rb
blob: 7fef1402a0ae95a0efcbdf412237666d23645f00 (plain)
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