Sha256: 680f9c6c0f8ebc0b1a736927147dc748472d57cc92eb83288a221483352e4180
Contents?: true
Size: 541 Bytes
Versions: 1
Compression:
Stored size: 541 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe FSPath do it "should inherit from Pathname" do FSPath.new('.').should be_kind_of(Pathname) end it "should use shortcut" do FSPath('.').should === FSPath.new('.') end describe "~" do it "should return current user home directory" do FSPath.~.should == FSPath.new(File.expand_path('~')) end it "should return other user home directory" do FSPath.~('root').should == FSPath.new(File.expand_path('~root')) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fspath-0.0.1 | spec/fspath_spec.rb |