Sha256: 120c8aa4b92146f91baffff31cf35f18a1025af33005e7fd75741f694b0f4ac8

Contents?: true

Size: 366 Bytes

Versions: 4

Compression:

Stored size: 366 Bytes

Contents

require 'spec_helper'

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

4 entries across 4 versions & 2 rubygems

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