spec/humanize/giga_spec.rb in humanize-bytes-2.0.0 vs spec/humanize/giga_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(g.to_s).to eq(3.25)
+ expect(g.to_s).to eq('3.25')
end
end
context 'with decimal_digits specified' do
before :each do
@g = Humanize::Giga.new 3.22
end
it "should return a float with specified digits" do
- expect(@g.to_s(:decimal_digits => 1)).to eq(3.2)
+ expect(@g.to_s(:decimal_digits => 1)).to eq('3.2')
end
end
end
end
\ No newline at end of file