Sha256: ed04e212903da2518a8cabc6c052bba2a891d21ee406b8462e46eaeca5079855
Contents?: true
Size: 491 Bytes
Versions: 7
Compression:
Stored size: 491 Bytes
Contents
require 'async/middleware' describe 'proxying calls' do include_context :site_hub describe 'supported HTTP verbs' do before do WebMock.enable! end let(:app) { Async::Middleware.new(rack_application) } %i(get post put delete).each do |verb| it 'forwards the downstream' do stub_request(verb, downstream_url).to_return(body: 'hello') send(verb, '/endpoint') expect(app.last_response.body).to eq(['hello']) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems