Sha256: f5b4d53d532bcca5162be3f0b086de600ece950beee66c0bb587f79d08a90c63

Contents?: true

Size: 503 Bytes

Versions: 19

Compression:

Stored size: 503 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

    it 'should know that it is NOT a text node' do
      @attr.text_node?.should be_false
    end
  end
end

Version data entries

19 entries across 19 versions & 5 rubygems

Version Path
dam5s-happymapper-0.3.2 spec/happymapper_attribute_spec.rb
nokogiri-happymapper-0.5.6 spec/happymapper_attribute_spec.rb
nokogiri-happymapper-0.5.5 spec/happymapper_attribute_spec.rb
nokogiri-happymapper-0.5.4 spec/happymapper_attribute_spec.rb
nokogiri-happymapper-0.5.3 spec/happymapper_attribute_spec.rb
nokogiri-happymapper-0.5.2 spec/happymapper_attribute_spec.rb
nokogiri-happymapper-0.5.1 spec/happymapper_attribute_spec.rb
unhappymapper-0.5.0 spec/happymapper_attribute_spec.rb
unhappymapper-0.4.4 spec/happymapper_attribute_spec.rb
unhappymapper-0.4.3 spec/happymapper_attribute_spec.rb
uva-happymapper-0.4.1 spec/happymapper_attribute_spec.rb
unhappymapper-0.4.2 spec/happymapper_attribute_spec.rb
unhappymapper-0.4.1 spec/happymapper_attribute_spec.rb
unhappymapper-0.4.0 spec/happymapper_attribute_spec.rb
nokogiri-happymapper-0.3.6 spec/happymapper_attribute_spec.rb
nokogiri-happymapper-0.3.5 spec/happymapper_attribute_spec.rb
nokogiri-happymapper-0.3.4 spec/happymapper_attribute_spec.rb
nokogiri-happymapper-0.3.3 spec/happymapper_attribute_spec.rb
raus22-happymapper-0.3.3 spec/happymapper_attribute_spec.rb