Sha256: e26dba348bc054f0a06345c8115ce7f301671f677ba53e1a76d6a8516d3a19ed

Contents?: true

Size: 499 Bytes

Versions: 19

Compression:

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

    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_element_spec.rb
nokogiri-happymapper-0.5.6 spec/happymapper_element_spec.rb
nokogiri-happymapper-0.5.5 spec/happymapper_element_spec.rb
nokogiri-happymapper-0.5.4 spec/happymapper_element_spec.rb
nokogiri-happymapper-0.5.3 spec/happymapper_element_spec.rb
nokogiri-happymapper-0.5.2 spec/happymapper_element_spec.rb
nokogiri-happymapper-0.5.1 spec/happymapper_element_spec.rb
unhappymapper-0.5.0 spec/happymapper_element_spec.rb
unhappymapper-0.4.4 spec/happymapper_element_spec.rb
unhappymapper-0.4.3 spec/happymapper_element_spec.rb
uva-happymapper-0.4.1 spec/happymapper_element_spec.rb
unhappymapper-0.4.2 spec/happymapper_element_spec.rb
unhappymapper-0.4.1 spec/happymapper_element_spec.rb
unhappymapper-0.4.0 spec/happymapper_element_spec.rb
nokogiri-happymapper-0.3.6 spec/happymapper_element_spec.rb
nokogiri-happymapper-0.3.5 spec/happymapper_element_spec.rb
nokogiri-happymapper-0.3.4 spec/happymapper_element_spec.rb
nokogiri-happymapper-0.3.3 spec/happymapper_element_spec.rb
raus22-happymapper-0.3.3 spec/happymapper_element_spec.rb