1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

required paths are real paths

Fix `test-spec` failures when the build directory is a symbolic
link.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-03-05 01:57:27 +00:00
parent ec7ee438ac
commit bd9bc1dbe5
3 changed files with 6 additions and 6 deletions

View file

@ -13,7 +13,7 @@ describe "Method#source_location" do
it "sets the first value to the path of the file in which the method was defined" do it "sets the first value to the path of the file in which the method was defined" do
file = @method.source_location.first file = @method.source_location.first
file.should be_an_instance_of(String) file.should be_an_instance_of(String)
file.should == File.dirname(__FILE__) + '/fixtures/classes.rb' file.should == File.realpath('../fixtures/classes.rb', __FILE__)
end end
it "sets the last value to a Fixnum representing the line on which the method was defined" do it "sets the last value to a Fixnum representing the line on which the method was defined" do

View file

@ -19,19 +19,19 @@ describe "Proc#source_location" do
it "sets the first value to the path of the file in which the proc was defined" do it "sets the first value to the path of the file in which the proc was defined" do
file = @proc.source_location.first file = @proc.source_location.first
file.should be_an_instance_of(String) file.should be_an_instance_of(String)
file.should == File.dirname(__FILE__) + '/fixtures/source_location.rb' file.should == File.realpath('../fixtures/source_location.rb', __FILE__)
file = @proc_new.source_location.first file = @proc_new.source_location.first
file.should be_an_instance_of(String) file.should be_an_instance_of(String)
file.should == File.dirname(__FILE__) + '/fixtures/source_location.rb' file.should == File.realpath('../fixtures/source_location.rb', __FILE__)
file = @lambda.source_location.first file = @lambda.source_location.first
file.should be_an_instance_of(String) file.should be_an_instance_of(String)
file.should == File.dirname(__FILE__) + '/fixtures/source_location.rb' file.should == File.realpath('../fixtures/source_location.rb', __FILE__)
file = @method.source_location.first file = @method.source_location.first
file.should be_an_instance_of(String) file.should be_an_instance_of(String)
file.should == File.dirname(__FILE__) + '/fixtures/source_location.rb' file.should == File.realpath('../fixtures/source_location.rb', __FILE__)
end end
it "sets the last value to a Fixnum representing the line on which the proc was defined" do it "sets the last value to a Fixnum representing the line on which the proc was defined" do

View file

@ -9,7 +9,7 @@ describe "UnboundMethod#source_location" do
it "sets the first value to the path of the file in which the method was defined" do it "sets the first value to the path of the file in which the method was defined" do
file = @method.source_location.first file = @method.source_location.first
file.should be_an_instance_of(String) file.should be_an_instance_of(String)
file.should == File.dirname(__FILE__) + '/fixtures/classes.rb' file.should == File.realpath('../fixtures/classes.rb', __FILE__)
end end
it "sets the last value to a Fixnum representing the line on which the method was defined" do it "sets the last value to a Fixnum representing the line on which the method was defined" do