diff options
Diffstat (limited to 'spec/ruby/library/stringio/chars_spec.rb')
-rw-r--r-- | spec/ruby/library/stringio/chars_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/ruby/library/stringio/chars_spec.rb b/spec/ruby/library/stringio/chars_spec.rb index 3383dcfc57..58cba77634 100644 --- a/spec/ruby/library/stringio/chars_spec.rb +++ b/spec/ruby/library/stringio/chars_spec.rb @@ -4,10 +4,26 @@ require_relative 'shared/each_char' ruby_version_is ''...'3.0' do describe "StringIO#chars" do + before :each do + @verbose, $VERBOSE = $VERBOSE, nil + end + + after :each do + $VERBOSE = @verbose + end + it_behaves_like :stringio_each_char, :chars end describe "StringIO#chars when self is not readable" do + before :each do + @verbose, $VERBOSE = $VERBOSE, nil + end + + after :each do + $VERBOSE = @verbose + end + it_behaves_like :stringio_each_char_not_readable, :chars end end |