Sha256: af517cd8c90845cab916343803d20c296b8995923d187c8fa375aa2769b16287

Contents?: true

Size: 792 Bytes

Versions: 4

Compression:

Stored size: 792 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 { subject.class.schema.should be_present }
  it { should be_valid }
  its(:to_xml) { should == load_xml_file('simple_feed.rss') }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
xommelier-0.1.25 spec/functional/xommelier/rss/rss/building_spec.rb
xommelier-0.1.24 spec/functional/xommelier/rss/rss/building_spec.rb
xommelier-0.1.23 spec/functional/xommelier/rss/rss/building_spec.rb
xommelier-0.1.22 spec/functional/xommelier/rss/rss/building_spec.rb