spec/humanize/kilo_spec.rb in humanize-bytes-2.0.1 vs spec/humanize/kilo_spec.rb in humanize-bytes-2.1.0

- old
+ new

@@ -1,9 +1,15 @@ require 'spec_helper' describe Humanize::Kilo do let(:k) { Humanize::Kilo.new(5000) } + context "initialize" do + it "should convert the number to float" do + expect(Humanize::Kilo.new('3').value).to be_an_instance_of(Float) + end + end + context "#value" do it "should return the value" do expect(k.value).to eq(5000) end end \ No newline at end of file