Sha256: 636652300b963e4b8f9be152a640c8d325b8b2d3558a38453821a5c538de8bcc

Contents?: true

Size: 399 Bytes

Versions: 42

Compression:

Stored size: 399 Bytes

Contents

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

describe HappyMapper::Element do
  describe "initialization" do
    before do
      @attr = HappyMapper::Element.new(:foo, String)
    end
    
    it 'should know that it is an element' do
      @attr.element?.should be_true
    end
    
    it 'should know that it is NOT an attribute' do
      @attr.attribute?.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_element_spec.rb
jimmyz-happymapper-0.3.1 spec/happymapper_element_spec.rb
jimmyz-happymapper-0.3.2 spec/happymapper_element_spec.rb
jimmyz-happymapper-0.3.3 spec/happymapper_element_spec.rb
jnunemaker-happymapper-0.1.2 spec/happymapper_element_spec.rb
jnunemaker-happymapper-0.1.3 spec/happymapper_element_spec.rb
jnunemaker-happymapper-0.1.4 spec/happymapper_element_spec.rb
jnunemaker-happymapper-0.1.5 spec/happymapper_element_spec.rb
jnunemaker-happymapper-0.1.6 spec/happymapper_element_spec.rb
jnunemaker-happymapper-0.1.7 spec/happymapper_element_spec.rb
jnunemaker-happymapper-0.2.0 spec/happymapper_element_spec.rb
jnunemaker-happymapper-0.2.1 spec/happymapper_element_spec.rb
jnunemaker-happymapper-0.2.2 spec/happymapper_element_spec.rb
jnunemaker-happymapper-0.2.3 spec/happymapper_element_spec.rb
jnunemaker-happymapper-0.2.4 spec/happymapper_element_spec.rb
jnunemaker-happymapper-0.2.5 spec/happymapper_element_spec.rb
kdonovan-happymapper-0.3.4 spec/happymapper_element_spec.rb
kdonovan-happymapper-0.3.5 spec/happymapper_element_spec.rb
lightningdb-happymapper-0.3.0 spec/happymapper_element_spec.rb
lightningdb-happymapper-0.3.1 spec/happymapper_element_spec.rb