Sha256: 6a533083c06cde312e829bc8de6196e879762f2221b6159c637e242ce2e13710

Contents?: true

Size: 252 Bytes

Versions: 7

Compression:

Stored size: 252 Bytes

Contents

require 'spec_helper'

describe HappyMapper::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

7 entries across 7 versions & 4 rubygems

Version Path
xmlmapper-0.5.9 spec/happymapper/attribute_spec.rb
instructure-happymapper-0.5.10 spec/happymapper/attribute_spec.rb
nokogiri-happymapper-deiga-0.5.10 spec/happymapper/attribute_spec.rb
nokogiri-happymapper-deiga-0.5.9 spec/happymapper/attribute_spec.rb
nokogiri-happymapper-0.5.9 spec/happymapper/attribute_spec.rb
nokogiri-happymapper-0.5.8 spec/happymapper/attribute_spec.rb
nokogiri-happymapper-0.5.7 spec/happymapper/attribute_spec.rb