mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
Spec that force_encoding works with encoding declaration in RssAgent
This commit is contained in:
parent
b8d88aa9a3
commit
7ac691652b
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue