Spec that force_encoding works with encoding declaration in RssAgent

This commit is contained in:
Akinori MUSHA 2016-11-26 13:26:09 +09:00
parent b8d88aa9a3
commit 7ac691652b

View file

@ -295,6 +295,13 @@ describe Agents::RssAgent do
event = agent.events.first
expect(event.payload['title']).to eq('Mëkanïk Zaïn')
end
it "decodes the content properly with force_encoding specified" do
@valid_options['force_encoding'] = 'iso-8859-1'
agent.check
event = agent.events.first
expect(event.payload['title']).to eq('Mëkanïk Zaïn')
end
end
end