diff options
Diffstat (limited to 'spec/ruby/core/proc/element_reference_spec.rb')
| -rw-r--r-- | spec/ruby/core/proc/element_reference_spec.rb | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/spec/ruby/core/proc/element_reference_spec.rb b/spec/ruby/core/proc/element_reference_spec.rb index f3dec21253..ac14292464 100644 --- a/spec/ruby/core/proc/element_reference_spec.rb +++ b/spec/ruby/core/proc/element_reference_spec.rb @@ -1,16 +1,7 @@ -require File.expand_path('../../../spec_helper', __FILE__) -require File.expand_path('../shared/call', __FILE__) -require File.expand_path('../shared/call_arguments', __FILE__) +require_relative '../../spec_helper' describe "Proc#[]" do - it_behaves_like :proc_call, :[] - it_behaves_like :proc_call_block_args, :[] -end - -describe "Proc#call on a Proc created with Proc.new" do - it_behaves_like :proc_call_on_proc_new, :call -end - -describe "Proc#call on a Proc created with Kernel#lambda or Kernel#proc" do - it_behaves_like :proc_call_on_proc_or_lambda, :call + it "is an alias of Proc#call" do + Proc.instance_method(:[]).should == Proc.instance_method(:call) + end end |
