summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-12 22:58:09 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-12 22:58:09 +0900
commitbf34ade7ef32f89aa5ba238d0a780f23eacb0487 (patch)
tree61e46055bcdf9b80c4ba971a0b03c2d71f3d965c /spec
parent3816622fbedd034d338fcb1bbdc80d163e302ae6 (diff)
Show the name `Kernel#proc` in the warning message
Diffstat (limited to 'spec')
-rw-r--r--spec/ruby/core/kernel/proc_spec.rb2
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