Sha256: 8cb28bf5e6ed4cadd00ecf182e1df90c9feb310b8ab01a453922c2663a098ae3
Contents?: true
Size: 540 Bytes
Versions: 1
Compression:
Stored size: 540 Bytes
Contents
require 'spec_helper' describe DataMapper::Property::Float do before :all do @name = :rating @type = described_class @load_as = Float @value = 0.1 @other_value = 0.2 @invalid_value = '1' 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_float, :precision => 10, :scale => nil) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ghost_dm-core-1.3.0.beta | spec/public/property/float_spec.rb |