From 0a5655a5be8a7447ca895a6e15a17fb2076d3f34 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 11 Jan 2019 09:36:49 +0000 Subject: Drop whole examples git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/ruby/core/proc/block_pass_spec.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'spec') diff --git a/spec/ruby/core/proc/block_pass_spec.rb b/spec/ruby/core/proc/block_pass_spec.rb index 5ee06b7eea..99255139d4 100644 --- a/spec/ruby/core/proc/block_pass_spec.rb +++ b/spec/ruby/core/proc/block_pass_spec.rb @@ -20,18 +20,15 @@ describe "Proc as a block pass argument" do end end -ruby_version_is ""..."2.8" do +ruby_version_is ""..."2.7" do describe "Proc as an implicit block pass argument" do def revivify Proc.new end it "remains the same object if re-vivified by the target method" do - warning = ruby_version_is("2.7") {/tried to create Proc object without a block/} - p = Proc.new {} - p2 = nil - -> {p2 = revivify(&p)}.should complain(warning) + p2 = revivify(&p) p.should equal p2 p.should == p2 end -- cgit v1.2.3