Sha256: d44f48a822476818dfa815871e7320f92c4b5b557b169211c2c437cb550ed656

Contents?: true

Size: 420 Bytes

Versions: 4

Compression:

Stored size: 420 Bytes

Contents

# frozen_string_literal: true

require "test_helper"
require "csv"

class DefaultResponseParserTest < Minitest::Test
  test "returns application/custom" do
    register_uri(:get, "http://example.org/file.custom", body: "1,2,3", content_type: "application/custom")
    response = Aitch.get("http://example.org/file.custom")

    assert_instance_of String, response.data
    assert_equal %[1,2,3], response.data
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aitch-2.0.0 test/aitch/response/default_response_parser_test.rb
aitch-1.2.2 test/aitch/response/default_response_parser_test.rb
aitch-1.2.1 test/aitch/response/default_response_parser_test.rb
aitch-1.2.0 test/aitch/response/default_response_parser_test.rb