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