Sha256: 1d6d0ec938e48ff76705b5f8f5b70ee333d944744c30a3834e07191e0e351aa8
Contents?: true
Size: 1.05 KB
Versions: 2
Compression:
Stored size: 1.05 KB
Contents
require 'spec_helper' describe Xommelier::Xml::Element::Serialization do describe 'class' do subject { Xommelier::Atom::Feed } it { should respond_to(:parse) } end describe 'parsing simple_feed' do let(:feed) { @feed = Xommelier::Atom::Feed.parse(load_xml_file('simple_feed.atom')) } it { feed.id.should == 'urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6' } it { feed.title.should == 'Example Feed' } it { feed.link.href.should == URI.parse('http://example.org/') } it { feed.updated.should == Time.utc(2003, 12, 13, 18, 30, 02) } it { feed.should have(1).authors } it { feed.author.name.should == 'John Doe' } it { feed.should have(1).entries } it { feed.entry.title.should == 'Atom-Powered Robots Run Amok' } it { feed.entry.link.href.should == URI.parse('http://example.org/2003/12/13/atom03') } it { feed.entry.id.should == 'urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a' } it { feed.entry.updated.should == Time.utc(2003, 12, 13, 18, 30, 02) } it { feed.entry.summary.should == 'Some text.' } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xommelier-0.1.1 | spec/lib/xommelier/xml/element/serialization_spec.rb |
xommelier-0.1.0 | spec/lib/xommelier/xml/element/serialization_spec.rb |