diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-11 09:36:49 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-11 09:36:49 +0000 |
commit | 0a5655a5be8a7447ca895a6e15a17fb2076d3f34 (patch) | |
tree | 7d40f721c090cf6941695555c22b8caa4bfdf203 | |
parent | 8197abf9aada88fd46bd6898bee21449ace9efaf (diff) | |
download | ruby-0a5655a5be8a7447ca895a6e15a17fb2076d3f34.tar.gz |
Drop whole examples
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | spec/ruby/core/proc/block_pass_spec.rb | 7 |
1 files changed, 2 insertions, 5 deletions
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 |