spec/humanize/byte_spec.rb in humanize-bytes-2.0.0 vs spec/humanize/byte_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(b.to_s).to eq(2147843648.0)
+ expect(b.to_s).to eq('2147843648')
end
end
context 'with decimal_digits specified' do
before :each do
@b = Humanize::Byte.new(2147843648.2345)
end
it "should return a float with specified digits" do
- expect(@b.to_s(:decimal_digits => 2)).to eq(2147843648.23)
+ expect(@b.to_s(:decimal_digits => 2)).to eq('2147843648.23')
end
end
end
end
\ No newline at end of file