spec/humanize/kilo_spec.rb in humanize-bytes-2.0.0 vs spec/humanize/kilo_spec.rb in humanize-bytes-2.0.1
- old
+ new
@@ -43,20 +43,20 @@
end
context "#to_s" do
context 'without any specification' do
it "should return a float with all digits" do
- expect(k.to_s).to eq(5000.0)
+ expect(k.to_s).to eq('5000')
end
end
context 'with decimal_digits specified' do
before :each do
@k = Humanize::Kilo.new(2147843648.2345)
end
it "should return a float with specified digits" do
- expect(@k.to_s(:decimal_digits => 1)).to eq(2147843648.2)
+ expect(@k.to_s(:decimal_digits => 1)).to eq('2147843648.2')
end
end
end
end
\ No newline at end of file