Sha256: 11c011de61457eeb8bb25a089ad5b39e08043d0fd69c003145f4ef37be716996
Contents?: true
Size: 644 Bytes
Versions: 2
Compression:
Stored size: 644 Bytes
Contents
require_relative '../../spec_helper' describe DataMapper::Property::Class do before :all do Object.send(:remove_const, :Foo) if defined?(Foo) Object.send(:remove_const, :Bar) if defined?(Bar) class ::Foo; end class ::Bar; end @name = :type @type = described_class @load_as = Class @value = Foo @other_value = Bar @invalid_value = 1 end it_behaves_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) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sbf-dm-core-1.3.0 | spec/public/property/class_spec.rb |
sbf-dm-core-1.3.0.beta | spec/public/property/class_spec.rb |