Sha256: dbe66a781edb3ff17f7893999693487df79c3632bca33993302273fc3db5b39e
Contents?: true
Size: 975 Bytes
Versions: 2
Compression:
Stored size: 975 Bytes
Contents
# coding: utf-8 ################################################ # © Alexander Semyonov, 2011—2013, MIT License # # Author: Alexander Semyonov <al@semyonov.us> # ################################################ require 'spec_helper' describe 'RSS feed building' do subject(:rss) do Xommelier::RSS::Rss.new( channel: { title: 'Example Feed', link: 'http://example.com', pub_date: Time.utc(2003, 6, 10, 04), last_build_date: Time.utc(2003, 12, 13, 18, 30, 02), managing_editor: 'john.doe@example.com', items: [{ title: 'RSS-Powered Robots Run Amok', guid: 'urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a', pub_date: Time.utc(2003, 12, 13, 18, 30, 02), description: 'Some text.', link: 'http://example.org/2003/12/13/atom03' }] } ) end it_behaves_like 'Valid XML Document' its(:to_xml) { should == load_xml_file('simple_feed.rss') } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xommelier-0.1.32 | spec/functional/xommelier/rss/rss/building_spec.rb |
xommelier-0.1.31 | spec/functional/xommelier/rss/rss/building_spec.rb |