summaryrefslogtreecommitdiff
path: root/spec/ruby/core/nil/match_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/nil/match_spec.rb')
-rw-r--r--spec/ruby/core/nil/match_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/nil/match_spec.rb b/spec/ruby/core/nil/match_spec.rb
index 2e2b5d1c1b..bc1c591793 100644
--- a/spec/ruby/core/nil/match_spec.rb
+++ b/spec/ruby/core/nil/match_spec.rb
@@ -2,7 +2,7 @@ require_relative '../../spec_helper'
describe "NilClass#=~" do
it "returns nil matching any object" do
- o = Object.new
+ o = nil
suppress_warning do
(o =~ /Object/).should be_nil