Sha256: b01041526b672e20f509c8111f2a02ef15d84ef74a0ef798410fa2acf98aeb71
Contents?: true
Size: 489 Bytes
Versions: 1
Compression:
Stored size: 489 Bytes
Contents
describe 'proxying calls' do include_context :site_hub include_context :async 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sitehub-0.4.3 | spec/sitehub/integration_spec.rb |