Sha256: f9a35cc4c8b08d7b67e3076f4578b60895a777675378adde125bc6c2f6d660be
Contents?: true
Size: 937 Bytes
Versions: 31
Compression:
Stored size: 937 Bytes
Contents
require 'spec_helper' describe Xommelier::Xml::Element::Structure do subject { NamespacedModule::RootWithSimpleSubelement } it { should respond_to(:elements) } it { should respond_to(:element) } it 'defines subelement' do NamespacedModule::RootWithSimpleSubelement.elements.should have_key(:some) end it { should respond_to(:attributes) } it { should respond_to(:attribute) } it 'defines attribute' do NamespacedModule::RootWithAttribute.attributes.should have_key(:another) end it { should respond_to(:text) } it 'defines as containing text' do NamespacedModule::RootWithText.new.should respond_to(:text) end it { should respond_to(:xmlns) } it { NamespacedModule::RootWithText.xmlns.uri.should == 'http://example.org/'} it { NamespacedModule::RootWithAttribute.xmlns.uri.should == 'http://example.org/'} it { Xommelier::Atom::Feed.xmlns.uri.should == 'http://www.w3.org/2005/Atom'} end
Version data entries
31 entries across 31 versions & 1 rubygems