mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@032ee74
This commit is contained in:
parent
f646d20aae
commit
5aaa75e7c1
263 changed files with 921 additions and 921 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue