Sha256: b65e1e038eb0860186e538e8a794ab31b5fca3f89dd4be53a4f7d3278fe9df9f

Contents?: true

Size: 281 Bytes

Versions: 3

Compression:

Stored size: 281 Bytes

Contents

require 'spec_helper'

def mock_request(url, body, params = {}, method = :get)
  stub = stub_request(method, url)
  stub = stub.with(query: params) unless params.length.zero?
  stub = stub.to_return(headers: { "Content-Type" => 'application/json' }, body: body.to_json)
  stub
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cic-1.0.2 spec/helper.rb
cic-1.0.1 spec/helper.rb
cic-1.0.0 spec/helper.rb