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

- old
+ new

@@ -7,9 +7,15 @@ it "should return the value" do b.value.should == 2147843648 end end + context "#to_b" do + it "should return the value" do + b.to_b.should == 2147843648 + end + end + context "#to_k" do it "should convert the value to kilo bytes" do b.to_k.should == 2097503.5625 end end \ No newline at end of file