Sha256: 7ea57b0dffee7087c12f8991e9fcb70ba276e04ccdfe1850c29cdea572cf98c9
Contents?: true
Size: 531 Bytes
Versions: 3
Compression:
Stored size: 531 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.0.2 | test/aitch/response/xml_response_test.rb |
aitch-1.0.1 | test/aitch/response/xml_response_test.rb |
aitch-1.0.0 | test/aitch/response/xml_response_test.rb |