summaryrefslogtreecommitdiff
path: root/spec/ruby/core/io/chars_spec.rb
blob: 15db595aed92880739ac14dc0acd03d16ab51b87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# -*- encoding: utf-8 -*-
require_relative '../../spec_helper'
require_relative 'fixtures/classes'
require_relative 'shared/chars'

ruby_version_is ''...'3.0' do
  describe "IO#chars" do
    before :each do
      @verbose, $VERBOSE = $VERBOSE, nil
    end

    after :each do
      $VERBOSE = @verbose
    end

    it_behaves_like :io_chars, :chars
  end

  describe "IO#chars" do
    before :each do
      @verbose, $VERBOSE = $VERBOSE, nil
    end

    after :each do
      $VERBOSE = @verbose
    end

    it_behaves_like :io_chars_empty, :chars
  end
end