Sha256: 48748535edf674c324f0b5aefe1c0887c4bf7882e8c15c9f9ae6de201510c453
Contents?: true
Size: 454 Bytes
Versions: 1
Compression:
Stored size: 454 Bytes
Contents
ruby_version_is ""..."1.9" do require 'ftools' describe "File.catname" do it "returns the 2nd arg if it's not a directory" do File.catname("blah", "/etc/passwd").should == "/etc/passwd" end it "uses File.join with the args" do File.catname("passwd", ".").should == "./passwd" end it "uses File.basename on the 1st arg before joining" do File.catname("etc/passwd", ".").should == "./passwd" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubysl-ftools-1.0.0 | spec/catname_spec.rb |