diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-11-12 22:58:09 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-11-12 22:58:09 +0900 |
commit | bf34ade7ef32f89aa5ba238d0a780f23eacb0487 (patch) | |
tree | 61e46055bcdf9b80c4ba971a0b03c2d71f3d965c /spec | |
parent | 3816622fbedd034d338fcb1bbdc80d163e302ae6 (diff) |
Show the name `Kernel#proc` in the warning message
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/core/kernel/proc_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/kernel/proc_spec.rb b/spec/ruby/core/kernel/proc_spec.rb index ded2cec3fd..2a79548313 100644 --- a/spec/ruby/core/kernel/proc_spec.rb +++ b/spec/ruby/core/kernel/proc_spec.rb @@ -56,7 +56,7 @@ describe "Kernel#proc" do -> { some_method { "hello" } - }.should complain(/Capturing the given block using Proc.new is deprecated/) + }.should complain(/Capturing the given block using Kernel#proc is deprecated/) end end end |