aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/kernel/proc_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/kernel/proc_spec.rb')
-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 2c0e7988f9..8c56946874 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(/tried to create Proc object without a block/)
+ }.should complain(/Capturing the given block using Proc.new is deprecated/)
end
end