Sha256: 61c5436cfbbf7d4f5bd4732f214df65e14e65848e694462aa4e7f0192384dbe9
Contents?: true
Size: 392 Bytes
Versions: 16
Compression:
Stored size: 392 Bytes
Contents
require 'rails_helper' describe LHC do context 'formats' do it 'adds Content-Type and Accept Headers to the request' do stub_request(:get, "http://local.ch/") .with(headers: { 'Accept' => 'application/json; charset=utf-8', 'Content-Type' => 'application/json; charset=utf-8' }) .to_return(body: {}.to_json) LHC.json.get('http://local.ch') end end end
Version data entries
16 entries across 16 versions & 1 rubygems