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