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