Sha256: 3812c6423e799b49e397a81e4dc2cddd2cb2b50b905dacae6d2e6823650e69f6
Contents?: true
Size: 532 Bytes
Versions: 3
Compression:
Stored size: 532 Bytes
Contents
# frozen_string_literal: true require "test_helper" class XmlResponseTest < Minitest::Test test "detects as xml" do register_uri(:get, "http://example.org/", body: "[]", content_type: "application/xml") response = Aitch.get("http://example.org/") assert response.xml? end test "returns xml" do register_uri(:get, "http://example.org/", body: "<foo/>", content_type: "application/xml") response = Aitch.get("http://example.org/") assert_instance_of Nokogiri::XML::Document, response.data end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aitch-1.2.1 | test/aitch/response/xml_response_test.rb |
aitch-1.2.0 | test/aitch/response/xml_response_test.rb |
aitch-1.1.0 | test/aitch/response/xml_response_test.rb |