test/unit/peddler/test_xml_parser.rb in peddler-0.15.0 vs test/unit/peddler/test_xml_parser.rb in peddler-0.16.0
- old
+ new
@@ -1,11 +1,15 @@
require 'helper'
require 'peddler/xml_parser'
class TestPeddlerXMLParser < MiniTest::Test
def setup
- body = '<Response><Result><NextToken>123</NextToken><Foo>Bar</Foo></Result></Response>'
- res = OpenStruct.new(body: body, headers: { 'Content-Type' => 'text/xml', 'Content-Length' => '78'})
+ body = '<Response><Result><NextToken>123</NextToken>'\
+ '<Foo>Bar</Foo></Result></Response>'
+ res = OpenStruct.new(
+ body: body,
+ headers: { 'Content-Type' => 'text/xml', 'Content-Length' => '78' }
+ )
@parser = Peddler::XMLParser.new(res)
end
def test_parses_data