1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2020-05-03 12:28:29 +02:00
parent f646d20aae
commit 5aaa75e7c1
263 changed files with 921 additions and 921 deletions

View file

@ -4,19 +4,19 @@ require 'pathname'
describe "Pathname#absolute?" do
it "returns true for the root directory" do
Pathname.new('/').absolute?.should == true
Pathname.new('/').should.absolute?
end
it "returns true for a dir starting with a slash" do
Pathname.new('/usr/local/bin').absolute?.should == true
Pathname.new('/usr/local/bin').should.absolute?
end
it "returns false for a dir not starting with a slash" do
Pathname.new('fish').absolute?.should == false
Pathname.new('fish').should_not.absolute?
end
it "returns false for a dir not starting with a slash" do
Pathname.new('fish/dog/cow').absolute?.should == false
Pathname.new('fish/dog/cow').should_not.absolute?
end
end