Sha256: 88c8f513a5fb76c5f3590bd0c66ff704b4643a012044c7989e5173999a4a20c7
Contents?: true
Size: 637 Bytes
Versions: 2
Compression:
Stored size: 637 Bytes
Contents
require_relative '../../spec_helper' describe DataMapper::Property::Decimal do before :all do @name = :rate @type = described_class @options = { :precision => 5, :scale => 2 } @load_as = BigDecimal @dump_as = String @value = BigDecimal('1.0') @other_value = BigDecimal('2.0') @invalid_value = true end it_behaves_like 'A public Property' describe '.options' do subject { described_class.options } it { is_expected.to be_kind_of(Hash) } it { is_expected.to eql(load_as: @load_as, dump_as: @load_as, precision: 10, scale: 0) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sbf-dm-core-1.3.0 | spec/public/property/decimal_spec.rb |
sbf-dm-core-1.3.0.beta | spec/public/property/decimal_spec.rb |