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