diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-18 09:56:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-18 09:56:03 +0000 |
commit | b86d87c81a6b2f2b494e1b23af22194c46864fb5 (patch) | |
tree | 43159237c45744c583561bcaf1a7b5aab669e859 /spec/ruby/core | |
parent | 4d1f86a1ffceb3323b4e2fac82dfc40c5a382e9e (diff) | |
download | ruby-b86d87c81a6b2f2b494e1b23af22194c46864fb5.tar.gz |
Suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/core')
-rw-r--r-- | spec/ruby/core/string/split_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/ruby/core/string/split_spec.rb b/spec/ruby/core/string/split_spec.rb index 0c82ef8c58..7d5a591790 100644 --- a/spec/ruby/core/string/split_spec.rb +++ b/spec/ruby/core/string/split_spec.rb @@ -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 |