Sha256: 4631878b38558c1d65674ac5fb37fe574222c4573533a86d11c4fd88549c1617
Contents?: true
Size: 400 Bytes
Versions: 2
Compression:
Stored size: 400 Bytes
Contents
require 'spec/helper' describe "Numeric#filesize_format" do it 'it should convert filesizes to human readable format' do 1.filesize_format.should == '1' 1024.filesize_format.should == '1.0K' (1 << 20).filesize_format.should == '1.0M' (1 << 20).filesize_format.should == '1.0M' (1 << 30).filesize_format.should == '1.0G' (1 << 40).filesize_format.should == '1.0T' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.2.1 | spec/snippets/numeric/filesize_format.rb |
ramaze-0.2.0 | spec/snippets/numeric/filesize_format.rb |