spec/rmega/lib/utils_spec.rb in rmega-0.0.6 vs spec/rmega/lib/utils_spec.rb in rmega-0.1.0

- old
+ new

@@ -20,16 +20,9 @@ a32 = [1936355170, 1933599088, 1886151982, 1668246784] described_class.str_to_a32(string).should == a32 end end - describe '#format_bytes' do - it 'converts to the correct unit' do - described_class.format_bytes(1024, 2).should == '1.0kb' - described_class.format_bytes(1024**2).should == '1.0MB' - end - end - describe '#a32_to_str' do it 'returns the expected value' do a32 = [1953853537, 1660944384] string = "tupac" + "\x00\x00\x00" described_class.a32_to_str(a32).should == string