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.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/ruby/core/nil/match_spec.rb b/spec/ruby/core/nil/match_spec.rb
index 3f69312bfe..27646e9749 100644
--- a/spec/ruby/core/nil/match_spec.rb
+++ b/spec/ruby/core/nil/match_spec.rb
@@ -15,5 +15,9 @@ ruby_version_is "2.6" do
(o =~ true).should be_nil
end
end
+
+ it "should not warn" do
+ -> { nil =~ /a/ }.should_not complain(verbose: true)
+ end
end
end