Sha256: 42e6a20283b8dd4d8c0a6009ef7d7a602d465ea6ea4ac090e1174ace2b01020b
Contents?: true
Size: 363 Bytes
Versions: 3
Compression:
Stored size: 363 Bytes
Contents
module Her module Testing module Macros module RequestMacros def ok!(body) [200, {}, body.to_json] end def error!(body) [400, {}, body.to_json] end def params(env) @params ||= Faraday::Utils.parse_query(env[:body]).with_indifferent_access end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
her-0.6.2 | spec/support/macros/request_macros.rb |
her-0.6.1 | spec/support/macros/request_macros.rb |
her-0.6 | spec/support/macros/request_macros.rb |