aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/library/stringio/lines_spec.rb
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2020-12-27 17:35:32 +0100
committerBenoit Daloze <eregontp@gmail.com>2020-12-27 17:35:32 +0100
commit727c97da1977544c91b9b3677811da3a44af7d53 (patch)
tree4f027117edad10789db57ff4b83242753a89e39d /spec/ruby/library/stringio/lines_spec.rb
parent267bed0cd91711e2a8c79219e97431ba22137b01 (diff)
downloadruby-727c97da1977544c91b9b3677811da3a44af7d53.tar.gz
Update to ruby/spec@4ce9f41
Diffstat (limited to 'spec/ruby/library/stringio/lines_spec.rb')
-rw-r--r--spec/ruby/library/stringio/lines_spec.rb32
1 files changed, 32 insertions, 0 deletions
diff --git a/spec/ruby/library/stringio/lines_spec.rb b/spec/ruby/library/stringio/lines_spec.rb
index 4a2aeac37e..42d11772ae 100644
--- a/spec/ruby/library/stringio/lines_spec.rb
+++ b/spec/ruby/library/stringio/lines_spec.rb
@@ -4,18 +4,50 @@ require_relative 'shared/each'
ruby_version_is ''...'3.0' do
describe "StringIO#lines when passed a separator" do
+ before :each do
+ @verbose, $VERBOSE = $VERBOSE, nil
+ end
+
+ after :each do
+ $VERBOSE = @verbose
+ end
+
it_behaves_like :stringio_each_separator, :lines
end
describe "StringIO#lines when passed no arguments" do
+ before :each do
+ @verbose, $VERBOSE = $VERBOSE, nil
+ end
+
+ after :each do
+ $VERBOSE = @verbose
+ end
+
it_behaves_like :stringio_each_no_arguments, :lines
end
describe "StringIO#lines 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_not_readable, :lines
end
describe "StringIO#lines when passed chomp" do
+ before :each do
+ @verbose, $VERBOSE = $VERBOSE, nil
+ end
+
+ after :each do
+ $VERBOSE = @verbose
+ end
+
it_behaves_like :stringio_each_chomp, :lines
end
end