Sha256: 81caeaa2936a789354b518aff03a6ea9b7c9a0602536d611dc6426e7d8cca7de

Contents?: true

Size: 362 Bytes

Versions: 4

Compression:

Stored size: 362 Bytes

Contents

require 'spec_helper'

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

4 entries across 4 versions & 2 rubygems

Version Path
happymapper-0.5.0 spec/happymapper_element_spec.rb
happymapper-0.4.1 spec/happymapper_element_spec.rb
happymapper-swanandp-0.4.0 spec/happymapper_element_spec.rb
happymapper-0.4.0 spec/happymapper_element_spec.rb