Sha256: 346f15a6a2d00471122bc843e3bf06426a6fbe8a0a87a819b039dbc7fbbf12a8

Contents?: true

Size: 981 Bytes

Versions: 1

Compression:

Stored size: 981 Bytes

Contents

# frozen_string_literal: true

################################################
# © Alexander Semyonov, 2011—2013, MIT License #
# Author: Alexander Semyonov <al@semyonov.us>  #
################################################

require 'spec_helper'

describe Xommelier::RSS do
  subject(:rss) do
    Xommelier::RSS::Rss.new(
      channel: {
        title: 'Example Feed',
        link: 'http://example.com',
        pub_date: Time.utc(2003, 6, 10, 4),
        last_build_date: Time.utc(2003, 12, 13, 18, 30, 2),
        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, 2),
          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

1 entries across 1 versions & 1 rubygems

Version Path
xommelier-0.1.35 spec/functional/xommelier/rss/rss/building_spec.rb