Sha256: 816ddf2071fe67fe0ec596010d92f76adb5649cead54b554abafb96b87cbf898

Contents?: true

Size: 321 Bytes

Versions: 5

Compression:

Stored size: 321 Bytes

Contents

# frozen_string_literal: true

require "test_helper"

class RawResponseTest < Minitest::Test
  test "returns body as it is (raw)" do
    register_uri(:get, "http://example.org/", body: "HELLO", content_type: "text/plain")
    response = Aitch.get("http://example.org/")

    assert_equal "HELLO", response.body
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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