Sha256: cb354144c9acb35dc18b8332494b95fbf3216f4341550860fb889c0fc54acf99
Contents?: true
Size: 546 Bytes
Versions: 1
Compression:
Stored size: 546 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), '..', '..', '..', 'lib', 'buildmaster') require 'spec' require 'cotta' describe Pathname do it 'parent check for unix path' do pathname = Pathname.new('/') pathname.cotta_parent.should be_nil end it 'parent check for windows path' do pathname = Pathname.new('D:/') pathname.cotta_parent.should be_nil end it 'parent check for normal ppl' do pathname = Pathname.new('/test') pathname.cotta_parent.should == Pathname.new('/') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
BuildMaster-1.1.9 | test/buildmaster/cotta/tc_pathname.rb |