Sha256: fdf84f75b65274601040f6f44ed8021dd9fc69bfa69c39fcd962bad7888b0ea2
Contents?: true
Size: 272 Bytes
Versions: 18
Compression:
Stored size: 272 Bytes
Contents
require 'spec_helper' describe Virtus::Coercion::Float, '.to_decimal' do subject { object.to_decimal(float) } let(:object) { described_class } let(:float) { 1.0 } it { should be_instance_of(BigDecimal) } it { should eql(BigDecimal('1.0')) } end
Version data entries
18 entries across 18 versions & 2 rubygems