From c48d496e8cfdf8243d2beb28623954003adaf7fc Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Mon, 29 May 2023 15:27:57 +0200 Subject: Update to ruby/spec@c3677cf --- spec/ruby/library/pathname/relative_path_from_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec/ruby/library/pathname/relative_path_from_spec.rb') diff --git a/spec/ruby/library/pathname/relative_path_from_spec.rb b/spec/ruby/library/pathname/relative_path_from_spec.rb index abe9c80a45..133a149849 100644 --- a/spec/ruby/library/pathname/relative_path_from_spec.rb +++ b/spec/ruby/library/pathname/relative_path_from_spec.rb @@ -48,4 +48,8 @@ describe "Pathname#relative_path_from" do relative_path_str('..', '..').should == '.' relative_path_str('..', '.').should == '..' end + + it 'converts string argument to Pathname' do + Pathname.new('/usr/bin/ls').relative_path_from('/usr').to_s.should == 'bin/ls' + end end -- cgit v1.2.3