Sha256: 4319d55535d12e7c48cb5eee461ac713d3a526a3dc55a9ce72f6fee708da2b86
Contents?: true
Size: 755 Bytes
Versions: 83
Compression:
Stored size: 755 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/shared/stat' describe "File.stat" do it_behaves_like :file_stat, :stat end describe "File.stat" do before :each do @file = tmp('i_exist') @link = tmp('i_am_a_symlink') File.open(@file,'w'){|f| f.write 'rubinius'} File.symlink(@file, @link) end after :each do File.delete(@link) if File.exist?(@link) File.delete(@file) if File.exist?(@file) end platform_is_not :windows do it "returns a File::Stat object with file properties for a symlink" do st = File.stat(@link) st.file?.should == true st.symlink?.should == false end end end
Version data entries
83 entries across 83 versions & 1 rubygems