diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-29 00:22:52 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-29 00:22:52 +0000 |
commit | 2076c2c3c401d9ab9324468818bbc46d4e4b870a (patch) | |
tree | 1697bf7d3f434e49cafd8a8c1579f2d065a7de56 /spec/ruby/core/kernel | |
parent | 548defb608847973e78462a38c8418f90dce9911 (diff) | |
download | ruby-2076c2c3c401d9ab9324468818bbc46d4e4b870a.tar.gz |
Update to ruby/spec@944ea57
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/core/kernel')
-rw-r--r-- | spec/ruby/core/kernel/match_spec.rb | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/spec/ruby/core/kernel/match_spec.rb b/spec/ruby/core/kernel/match_spec.rb index bc6cb3d9dd..d5808b6ede 100644 --- a/spec/ruby/core/kernel/match_spec.rb +++ b/spec/ruby/core/kernel/match_spec.rb @@ -1,22 +1,16 @@ require_relative '../../spec_helper' describe "Kernel#=~" do - verbose = $VERBOSE - before :each do - verbose, $VERBOSE = $VERBOSE, nil - end - after :each do - $VERBOSE = verbose - end - it "returns nil matching any object" do o = Object.new - (o =~ /Object/).should be_nil - (o =~ 'Object').should be_nil - (o =~ Object).should be_nil - (o =~ Object.new).should be_nil - (o =~ nil).should be_nil - (o =~ true).should be_nil + suppress_warning do + (o =~ /Object/).should be_nil + (o =~ 'Object').should be_nil + (o =~ Object).should be_nil + (o =~ Object.new).should be_nil + (o =~ nil).should be_nil + (o =~ true).should be_nil + end end end |