Sha256: 6b8bdb22c878585be5eab244eb050e7066be0043cb34e064cff9d228e94bd871
Contents?: true
Size: 539 Bytes
Versions: 14
Compression:
Stored size: 539 Bytes
Contents
require 'spec_helper' describe Ardm::Property::Serial do before 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 { is_expected.to be_kind_of(Hash) } it { is_expected.to eql(:load_as => @load_as, :dump_as => @load_as, :coercion_method => :to_integer, :min => 1, :serial => true) } end end
Version data entries
14 entries across 14 versions & 1 rubygems