Sha256: 250da5113ecf89d450e2ef1c9753e9bbc5aae4c491b36219ee453c987c0bd7d7
Contents?: true
Size: 457 Bytes
Versions: 6
Compression:
Stored size: 457 Bytes
Contents
describe Moneta::Api::DataMapper do class Target include Moneta::Api::DataMapper property :field end it 'should set present value' do object = Target.build(field: 1) expect(object.field).to eq 1 end it 'should set nil value' do object = Target.build(field: nil) expect(object.field).to be_nil end it 'should set false value' do object = Target.build(field: false) expect(object.field).to eq false end end
Version data entries
6 entries across 6 versions & 1 rubygems