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

Version Path
xommelier-0.1.30 spec/lib/xommelier/xml/element/structure_spec.rb
xommelier-0.1.29 spec/lib/xommelier/xml/element/structure_spec.rb
xommelier-0.1.28 spec/lib/xommelier/xml/element/structure_spec.rb
xommelier-0.1.27 spec/lib/xommelier/xml/element/structure_spec.rb
xommelier-0.1.26 spec/lib/xommelier/xml/element/structure_spec.rb
xommelier-0.1.25 spec/lib/xommelier/xml/element/structure_spec.rb
xommelier-0.1.24 spec/lib/xommelier/xml/element/structure_spec.rb
xommelier-0.1.23 spec/lib/xommelier/xml/element/structure_spec.rb
xommelier-0.1.22 spec/lib/xommelier/xml/element/structure_spec.rb
xommelier-0.1.21 spec/lib/xommelier/xml/element/structure_spec.rb
xommelier-0.1.20 spec/lib/xommelier/xml/element/structure_spec.rb
xommelier-0.1.19 spec/lib/xommelier/xml/element/structure_spec.rb
xommelier-0.1.18 spec/lib/xommelier/xml/element/structure_spec.rb
xommelier-0.1.16 spec/lib/xommelier/xml/element/structure_spec.rb
xommelier-0.1.15 spec/lib/xommelier/xml/element/structure_spec.rb
xommelier-0.1.14 spec/lib/xommelier/xml/element/structure_spec.rb
xommelier-0.1.13 spec/lib/xommelier/xml/element/structure_spec.rb
xommelier-0.1.12 spec/lib/xommelier/xml/element/structure_spec.rb
xommelier-0.1.11 spec/lib/xommelier/xml/element/structure_spec.rb
xommelier-0.1.10 spec/lib/xommelier/xml/element/structure_spec.rb