test/unit/peddler/test_xml_parser.rb in peddler-0.7.5 vs test/unit/peddler/test_xml_parser.rb in peddler-0.7.6
- old
+ new
@@ -1,13 +1,13 @@
require 'helper'
-require 'peddler/parser'
+require 'peddler/xml_parser'
class XMLParserTest < 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'})
- @parser = Peddler::Parser.parse(res)
+ @parser = Peddler::XMLParser.new(res)
end
def test_parses_data
assert_equal 'Bar', @parser.parse['Foo']
end