Sha256: 22e25d3ba16e24e28a7b06fe81b3d91fda4979bf51ea934b782b010b59d173f1

Contents?: true

Size: 250 Bytes

Versions: 12

Compression:

Stored size: 250 Bytes

Contents

require 'spec_helper'

describe XmlMapper::Attribute do

  describe "initialization" do
    it 'accepts :default option' do
      attr = described_class.new(:foo, String, :default => 'foobar')
      attr.default.should == 'foobar'
    end
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
xmlmapper-0.8.1 spec/xmlmapper/attribute_spec.rb
xmlmapper-0.8.0 spec/xmlmapper/attribute_spec.rb
xmlmapper-0.7.3 spec/xmlmapper/attribute_spec.rb
xmlmapper-0.7.2 spec/xmlmapper/attribute_spec.rb
xmlmapper-0.7.1 spec/xmlmapper/attribute_spec.rb
xmlmapper-0.7.0 spec/xmlmapper/attribute_spec.rb
xmlmapper-0.6.5 spec/xmlmapper/attribute_spec.rb
xmlmapper-0.6.4 spec/xmlmapper/attribute_spec.rb
xmlmapper-0.6.3 spec/xmlmapper/attribute_spec.rb
xmlmapper-0.6.2 spec/xmlmapper/attribute_spec.rb
xmlmapper-0.6.1 spec/xmlmapper/attribute_spec.rb
xmlmapper-0.6.0 spec/xmlmapper/attribute_spec.rb