Sha256: 0a593ec5525c405636d86ce472ecc712c8c58c5eb2660fb597321307a3f07ad4
Contents?: true
Size: 511 Bytes
Versions: 14
Compression:
Stored size: 511 Bytes
Contents
require 'spec_helper' describe Ardm::Property::Integer do before do @name = :age @type = described_class @load_as = Integer @value = 1 @other_value = 2 @invalid_value = '1' 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) } end end
Version data entries
14 entries across 14 versions & 1 rubygems