spec/file/stat_spec.rb in em-fs-0.0.1 vs spec/file/stat_spec.rb in em-fs-0.1.0
- old
+ new
@@ -2,21 +2,17 @@
describe EM::File::Stat do
describe '.parse' do
context 'parsed stat' do
subject do
- EM::File::Stat.parse "644 427272 512 2050 81a4 'regular file' 100 1 2623327 '/' '/home/arthur/test' 4096 218759168 0 0 1000 0 1340357826 1340357846 1340357846 802h 2050d"
+ EM::File::Stat.parse "644 2050 'regular file' 100 1 2623327 '/home/arthur/test' 218759168 1000 1340357826 1340357846 1340357846"
end
its(:atime) { should == Time.at(1340357826) }
- its(:blksize) { should == 512 }
its(:blockdev?) { should == false }
- its(:blocks) { should == 427272 }
its(:chardev?) { should == false }
its(:ctime) { should == Time.at(1340357846) }
its(:dev) { should == 2050 }
- its(:dev_major) { should == 0 }
- its(:dev_minor) { should == 0 }
its(:directory?) { should == false }
its(:executable?) { should == false }
its(:executable_real?) { should == false }
its(:file?) { should == true }
its(:ftype) { should == EM::File::Stat::S_IFREG }