mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@83063a3
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1e658d45e1
commit
3fa5bd38af
494 changed files with 4133 additions and 3109 deletions
|
@ -3,5 +3,5 @@ require File.expand_path('../fixtures/classes', __FILE__)
|
|||
require File.expand_path('../shared/call', __FILE__)
|
||||
|
||||
describe "Method#call" do
|
||||
it_behaves_like(:method_call, :call)
|
||||
it_behaves_like :method_call, :call
|
||||
end
|
||||
|
|
|
@ -4,6 +4,6 @@ require File.expand_path('../shared/call', __FILE__)
|
|||
|
||||
ruby_version_is "2.5" do
|
||||
describe "Method#===" do
|
||||
it_behaves_like(:method_call, :===)
|
||||
it_behaves_like :method_call, :===
|
||||
end
|
||||
end
|
||||
|
|
|
@ -3,5 +3,5 @@ require File.expand_path('../fixtures/classes', __FILE__)
|
|||
require File.expand_path('../shared/call', __FILE__)
|
||||
|
||||
describe "Method#[]" do
|
||||
it_behaves_like(:method_call, :[])
|
||||
it_behaves_like :method_call, :[]
|
||||
end
|
||||
|
|
|
@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
|
|||
require File.expand_path('../shared/eql', __FILE__)
|
||||
|
||||
describe "Method#eql?" do
|
||||
it_behaves_like(:method_equal, :eql?)
|
||||
it_behaves_like :method_equal, :eql?
|
||||
end
|
||||
|
|
|
@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
|
|||
require File.expand_path('../shared/eql', __FILE__)
|
||||
|
||||
describe "Method#==" do
|
||||
it_behaves_like(:method_equal, :==)
|
||||
it_behaves_like :method_equal, :==
|
||||
end
|
||||
|
|
|
@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
|
|||
require File.expand_path('../shared/to_s', __FILE__)
|
||||
|
||||
describe "Method#inspect" do
|
||||
it_behaves_like(:method_to_s, :inspect)
|
||||
it_behaves_like :method_to_s, :inspect
|
||||
end
|
||||
|
|
|
@ -55,6 +55,10 @@ describe "Method#to_proc" do
|
|||
x.baz(1,2,3,&m).should == [1,2,3]
|
||||
end
|
||||
|
||||
it "returns a proc whose binding has the same receiver as the method" do
|
||||
@meth.receiver.should == @meth.to_proc.binding.receiver
|
||||
end
|
||||
|
||||
# #5926
|
||||
it "returns a proc that can receive a block" do
|
||||
x = Object.new
|
||||
|
|
|
@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
|
|||
require File.expand_path('../shared/to_s', __FILE__)
|
||||
|
||||
describe "Method#to_s" do
|
||||
it_behaves_like(:method_to_s, :to_s)
|
||||
it_behaves_like :method_to_s, :to_s
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue