Sha256: 1a0f8252b7e0ff034bb8c0fa12b2d3283024e74d9e12b2459cad6a12f099cb98
Contents?: true
Size: 283 Bytes
Versions: 3
Compression:
Stored size: 283 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe HappyMapper::Attribute do describe 'initialization' do it 'accepts :default option' do attr = described_class.new(:foo, String, default: 'foobar') expect(attr.default).to eq('foobar') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nokogiri-happymapper-0.8.1 | spec/happymapper/attribute_spec.rb |
nokogiri-happymapper-0.8.0 | spec/happymapper/attribute_spec.rb |
nokogiri-happymapper-0.7.0 | spec/happymapper/attribute_spec.rb |