Sha256: b670c81ed253a85651ddfdbfd92cd6e11f73299df598494c4a7537d633bb06bf

Contents?: true

Size: 316 Bytes

Versions: 2

Compression:

Stored size: 316 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

2 entries across 2 versions & 1 rubygems

Version Path
aitch-1.0.2 test/aitch/request/json_request_test.rb
aitch-1.0.1 test/aitch/request/json_request_test.rb