diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-11-28 12:18:17 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-02-19 15:46:26 +0900 |
commit | f0b815dc670b61eba1daaa67a8613ac431d32b16 (patch) | |
tree | bd32191e8fdfb34701afce748c5d1ed8f1e6347a /spec/ruby/core | |
parent | 90d082e374abb2f76075ec143b255e3a53157b41 (diff) |
`Proc` made by `Symbol#to_proc` should be a lambda [Bug #16260]
Diffstat (limited to 'spec/ruby/core')
-rw-r--r-- | spec/ruby/core/proc/shared/to_s.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/proc/shared/to_s.rb b/spec/ruby/core/proc/shared/to_s.rb index 8b9c83927f..7edd11b1e1 100644 --- a/spec/ruby/core/proc/shared/to_s.rb +++ b/spec/ruby/core/proc/shared/to_s.rb @@ -46,7 +46,7 @@ describe :proc_to_s, shared: true do describe "for a proc created with Symbol#to_proc" do it "returns a description including '(&:symbol)'" do proc = :foobar.to_proc - proc.send(@method).should =~ /^#<Proc:0x\h+\(&:foobar\)>$/ + proc.send(@method).should.include?('(&:foobar)') end it "has a binary encoding" do |