Sha256: 3709a49ec16e75f3f42c0f409b9b54c61f3f5cc2889ebbfee6c25619193aa8a3
Contents?: true
Size: 525 Bytes
Versions: 5
Compression:
Stored size: 525 Bytes
Contents
require 'pathname' describe "Pathname#absolute?" do it "returns true for the root directory" do Pathname.new('/').absolute?.should == true end it "returns true for a dir starting with a slash" do Pathname.new('/usr/local/bin').absolute?.should == true end it "returns false for a dir not starting with a slash" do Pathname.new('fish').absolute?.should == false end it "returns false for a dir not starting with a slash" do Pathname.new('fish/dog/cow').absolute?.should == false end end
Version data entries
5 entries across 5 versions & 1 rubygems