spec/feedjira/feed_spec.rb in feedjira-2.1.4 vs spec/feedjira/feed_spec.rb in feedjira-2.2.0
- old
+ new
@@ -143,18 +143,20 @@
published = Time.parse_safely 'Wed, 15 Jun 2005 19:00:00 GMT'
expect(feed.entries.first.published).to eq published
expect(feed.entries.size).to eq 3
end
+ # rubocop:disable Metrics/LineLength
it 'does not fail if multiple published dates exist and some are unparseable' do
expect(Feedjira.logger).to receive(:warn).once
feed = Feedjira::Feed.parse(sample_invalid_date_format_feed)
expect(feed.title).to eq 'Invalid date format feed'
published = Time.parse_safely 'Mon, 16 Oct 2017 15:10:00 GMT'
expect(feed.entries.first.published).to eq published
expect(feed.entries.size).to eq 2
end
+ # rubocop:enable Metrics/LineLength
end
context "when there's no available parser" do
it 'raises Feedjira::NoParserAvailable' do
expect {