Sha256: 30322e2fcef371ddda8d3b65ca9809348f8b04534aff87da75d9f29a9c4a3f85

Contents?: true

Size: 317 Bytes

Versions: 5

Compression:

Stored size: 317 Bytes

Contents

# frozen_string_literal: true

require "test_helper"

class JsonRequestTest < Minitest::Test
  test "uses json parser" do
    register_uri(:post, "http://example.org/", status: 200)
    Aitch.post do
      url "http://example.org/"
      body a: 1
      headers "Content-Type" => "application/json"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
aitch-2.0.0 test/aitch/request/json_request_test.rb
aitch-1.2.2 test/aitch/request/json_request_test.rb
aitch-1.2.1 test/aitch/request/json_request_test.rb
aitch-1.2.0 test/aitch/request/json_request_test.rb
aitch-1.1.0 test/aitch/request/json_request_test.rb