Sha256: d25868f6a75d95a70009ce0a14a73eb093baf3139667706a70aa69a3230e326c

Contents?: true

Size: 212 Bytes

Versions: 4

Compression:

Stored size: 212 Bytes

Contents

module HtHelpers
  def params(str)
    HTTP::Message.parse(str).inject({}) { |r, (k, v)| r[k] = v.first; r }
  end
end

RSpec.configure do |config|
  config.extend HtHelpers
  config.include HTTPClient::Util
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
glebtv-httpclient-3.2.3 spec/support/ht_helpers.rb
glebtv-httpclient-3.2.2 spec/support/ht_helpers.rb
glebtv-httpclient-3.2.1 spec/support/ht_helpers.rb
glebtv-httpclient-3.2.0 spec/support/ht_helpers.rb