Sha256: ca9139f64db32a5f8e712c3c8b012dd47ba026ea2509009d1d1f78ba06853152

Contents?: true

Size: 509 Bytes

Versions: 14

Compression:

Stored size: 509 Bytes

Contents

require 'helper'
require 'peddler/xml_parser'

class TestPeddlerXMLParser < MiniTest::Test
  def setup
    body = '<Foo>Bar</Foo>'

    res = OpenStruct.new(
      body: body,
      headers: {
        'Content-Type' => 'text/xml',
        'Content-Length' => body.size.to_s
      }
    )

    @parser = Peddler::XMLParser.new(res)
  end

  def test_does_not_implement_parsing
    assert_raises NotImplementedError do
      @parser.parse
    end
  end

  def test_validates
    assert @parser.valid?
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
peddler-1.5.0 test/unit/peddler/test_xml_parser.rb
peddler-1.4.1 test/unit/peddler/test_xml_parser.rb
peddler-1.4.0 test/unit/peddler/test_xml_parser.rb
peddler-1.3.0 test/unit/peddler/test_xml_parser.rb
peddler-1.2.0 test/unit/peddler/test_xml_parser.rb
peddler-1.1.1 test/unit/peddler/test_xml_parser.rb
peddler-1.1.0 test/unit/peddler/test_xml_parser.rb
peddler-1.0.2 test/unit/peddler/test_xml_parser.rb
peddler-1.0.1 test/unit/peddler/test_xml_parser.rb
peddler-1.0.0 test/unit/peddler/test_xml_parser.rb
peddler-0.19.0 test/unit/peddler/test_xml_parser.rb
peddler-0.18.0 test/unit/peddler/test_xml_parser.rb
peddler-0.17.1 test/unit/peddler/test_xml_parser.rb
peddler-0.17.0 test/unit/peddler/test_xml_parser.rb