Sha256: 5bff11f9a1069ad8d367d6cf7328584c25822d50ec02ba21f6730f82fac56de4
Contents?: true
Size: 758 Bytes
Versions: 5
Compression:
Stored size: 758 Bytes
Contents
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
5 entries across 5 versions & 1 rubygems