Sha256: f141b3a4c688fa6e535bafdd9ab6c269a7f63222a38e90338964b7e51ea27d66
Contents?: true
Size: 389 Bytes
Versions: 16
Compression:
Stored size: 389 Bytes
Contents
# frozen_string_literal: true module Spec module Support module Helpers %w[put patch post delete].each do |method| define_method :"#{method}_with_json" do |uri, params = {}, env = {}, &block| params = params.to_json env['CONTENT_TYPE'] ||= 'application/json' send(method, uri, params, env, &block) end end end end end
Version data entries
16 entries across 16 versions & 2 rubygems