Sha256: cb8235ebdddc7b91885b6e3419332508903ba04d8059aaf74e2db3f7c30a045d
Contents?: true
Size: 508 Bytes
Versions: 3
Compression:
Stored size: 508 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 require "test_helper" class XmlParserTest < Minitest::Test test "instantiates Nokogiri" do Nokogiri.expects(:XML).with("XML", nil, "utf-8") Aitch::ResponseParser::XMLParser.load("XML") end test "converts ISO-8859-1 to UTF-8" do xml = Aitch::ResponseParser::XMLParser.load(File.read("./test/fixtures/iso8859-1.xml")) assert_equal "utf-8", xml.encoding assert_includes xml.to_xml, %[<?xml version="1.0" encoding="utf-8"?>] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aitch-1.0.2 | test/aitch/response_parser/xml_parser_test.rb |
aitch-1.0.1 | test/aitch/response_parser/xml_parser_test.rb |
aitch-1.0.0 | test/aitch/response_parser/xml_parser_test.rb |