mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-06 00:02:08 -04:00
18 lines
274 B
Ruby
18 lines
274 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative "../test_helper"
|
|
|
|
class HTTPTest < Minitest::Spec
|
|
include ResponseHelpers
|
|
|
|
private
|
|
|
|
def build_uri(suffix="/")
|
|
"#{origin}#{suffix || "/"}"
|
|
end
|
|
|
|
def json_body(response)
|
|
JSON.parse(response.body.to_s)
|
|
end
|
|
end
|