Sha256: bfe4af784de05215d4fbba8c55ec01c717187de91fb394fcc9367ea1678b8634
Contents?: true
Size: 229 Bytes
Versions: 2
Compression:
Stored size: 229 Bytes
Contents
require 'spec_helper' describe Coercer::Numeric, '.to_decimal' do subject { object.to_decimal(numeric) } let(:object) { described_class.new } let(:numeric) { Rational(2, 2) } it { should eql(BigDecimal('1.0')) } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
coercible-0.0.2 | spec/unit/coercible/coercer/numeric/to_decimal_spec.rb |
coercible-0.0.1 | spec/unit/coercible/coercer/numeric/to_decimal_spec.rb |