@@ -97,7 +97,7 @@ module Agents |
||
97 | 97 |
def check_url(url) |
98 | 98 |
response = faraday.get(url) |
99 | 99 |
if response.success? |
100 |
- feed = FeedNormalizer::FeedNormalizer.parse(response.body) |
|
100 |
+ feed = FeedNormalizer::FeedNormalizer.parse(response.body, :loose => true) |
|
101 | 101 |
feed.clean! if boolify(interpolated['clean']) |
102 | 102 |
max_events = (interpolated['max_events_per_run'].presence || 0).to_i |
103 | 103 |
created_event_count = 0 |
@@ -151,7 +151,7 @@ describe Agents::RssAgent do |
||
151 | 151 |
|
152 | 152 |
describe 'logging errors with the feed url' do |
153 | 153 |
it 'includes the feed URL when an exception is raised' do |
154 |
- mock(FeedNormalizer::FeedNormalizer).parse(anything) { raise StandardError.new("Some error!") } |
|
154 |
+ mock(FeedNormalizer::FeedNormalizer).parse(anything, :loose => true) { raise StandardError.new("Some error!") } |
|
155 | 155 |
expect(lambda { |
156 | 156 |
agent.check |
157 | 157 |
}).not_to raise_error |