spec/humanize_bytes/mbyte_spec.rb in humanize-bytes-0.0.1 vs spec/humanize_bytes/mbyte_spec.rb in humanize-bytes-0.0.2

- old
+ new

@@ -19,9 +19,15 @@ it "should convert the value to kilo bytes" do m.to_k.should == 5000 end end + context "#to_m" do + it "should return the value" do + m.to_m.should == 4.8828125 + end + end + context "#to_g" do it "should convert the value to giga bytes" do Humanize::Bytes::Mega.new(1000).to_g.should == 0.9765625 end end \ No newline at end of file