Sha256: c5184f35aad8608692a440ef66ddc299816c7737ddbc1c89f0123a3be336bc2b

Contents?: true

Size: 403 Bytes

Versions: 42

Compression:

Stored size: 403 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper.rb'

describe HappyMapper::Attribute do
  describe "initialization" do
    before do
      @attr = HappyMapper::Attribute.new(:foo, String)
    end
    
    it 'should know that it is an attribute' do
      @attr.attribute?.should be_true
    end
    
    it 'should know that it is NOT an element' do
      @attr.element?.should be_false
    end
  end
end

Version data entries

42 entries across 42 versions & 9 rubygems

Version Path
gotascii-happymapper-0.1.6 spec/happymapper_attribute_spec.rb
jimmyz-happymapper-0.3.1 spec/happymapper_attribute_spec.rb
jimmyz-happymapper-0.3.2 spec/happymapper_attribute_spec.rb
jimmyz-happymapper-0.3.3 spec/happymapper_attribute_spec.rb
jnunemaker-happymapper-0.1.2 spec/happymapper_attribute_spec.rb
jnunemaker-happymapper-0.1.3 spec/happymapper_attribute_spec.rb
jnunemaker-happymapper-0.1.4 spec/happymapper_attribute_spec.rb
jnunemaker-happymapper-0.1.5 spec/happymapper_attribute_spec.rb
jnunemaker-happymapper-0.1.6 spec/happymapper_attribute_spec.rb
jnunemaker-happymapper-0.1.7 spec/happymapper_attribute_spec.rb
jnunemaker-happymapper-0.2.0 spec/happymapper_attribute_spec.rb
jnunemaker-happymapper-0.2.1 spec/happymapper_attribute_spec.rb
jnunemaker-happymapper-0.2.2 spec/happymapper_attribute_spec.rb
jnunemaker-happymapper-0.2.3 spec/happymapper_attribute_spec.rb
jnunemaker-happymapper-0.2.4 spec/happymapper_attribute_spec.rb
jnunemaker-happymapper-0.2.5 spec/happymapper_attribute_spec.rb
kdonovan-happymapper-0.3.4 spec/happymapper_attribute_spec.rb
kdonovan-happymapper-0.3.5 spec/happymapper_attribute_spec.rb
lightningdb-happymapper-0.3.0 spec/happymapper_attribute_spec.rb
lightningdb-happymapper-0.3.1 spec/happymapper_attribute_spec.rb