summaryrefslogtreecommitdiff
path: root/spec/ruby/core/proc/yield_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/proc/yield_spec.rb')
-rw-r--r--spec/ruby/core/proc/yield_spec.rb15
1 files changed, 3 insertions, 12 deletions
diff --git a/spec/ruby/core/proc/yield_spec.rb b/spec/ruby/core/proc/yield_spec.rb
index 365d5b04bd..e6ee2d5eff 100644
--- a/spec/ruby/core/proc/yield_spec.rb
+++ b/spec/ruby/core/proc/yield_spec.rb
@@ -1,16 +1,7 @@
require_relative '../../spec_helper'
-require_relative 'shared/call'
-require_relative 'shared/call_arguments'
describe "Proc#yield" do
- it_behaves_like :proc_call, :yield
- it_behaves_like :proc_call_block_args, :yield
-end
-
-describe "Proc#yield on a Proc created with Proc.new" do
- it_behaves_like :proc_call_on_proc_new, :yield
-end
-
-describe "Proc#yield on a Proc created with Kernel#lambda or Kernel#proc" do
- it_behaves_like :proc_call_on_proc_or_lambda, :yield
+ it "is an alias of Proc#call" do
+ Proc.instance_method(:yield).should == Proc.instance_method(:call)
+ end
end