spec/humanize_bytes/kbyte_spec.rb in humanize-bytes-0.0.1 vs spec/humanize_bytes/kbyte_spec.rb in humanize-bytes-0.0.2
- old
+ new
@@ -13,9 +13,15 @@
it "should convert the value to bytes" do
k.to_b.should == 5120000
end
end
+ context "#to_k" do
+ it "should return the value" do
+ k.to_k.should == 5000
+ end
+ end
+
context "#to_m" do
it "should convert the value to mega bytes" do
k.to_m.should == 4.8828125
end
end
\ No newline at end of file