Sha256: 0e21202dd5295aee8b2fbe26df8295d2206bef3a293f8b2cc6f425a391051a16
Contents?: true
Size: 534 Bytes
Versions: 1
Compression:
Stored size: 534 Bytes
Contents
require 'spec_helper' describe DataMapper::Property::Serial do before :all do @name = :id @type = described_class @load_as = Integer @value = 1 @other_value = 2 @invalid_value = 'foo' 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_integer, :min => 1, :serial => true) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ghost_dm-core-1.3.0.beta | spec/public/property/serial_spec.rb |