1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Suppress warnings

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2019-04-18 09:56:03 +00:00
parent 4d1f86a1ff
commit b86d87c81a
3 changed files with 11 additions and 5 deletions

View file

@ -66,6 +66,8 @@ describe "String#split with String" do
it "defaults to $; when string isn't given or nil" do
begin
verbose = $VERBOSE
$VERBOSE = nil
old_fs = $;
[",", ":", "", "XY", nil].each do |fs|
@ -84,6 +86,7 @@ describe "String#split with String" do
end
ensure
$; = old_fs
$VERBOSE = verbose
end
end
@ -239,6 +242,8 @@ describe "String#split with Regexp" do
it "defaults to $; when regexp isn't given or nil" do
begin
verbose = $VERBOSE
$VERBOSE = nil
old_fs = $;
[/,/, /:/, //, /XY/, /./].each do |fs|
@ -257,6 +262,7 @@ describe "String#split with Regexp" do
end
ensure
$; = old_fs
$VERBOSE = verbose
end
end